Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reasonstousegenesis/c5361ccdd2dbc7f501cc to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/c5361ccdd2dbc7f501cc to your computer and use it in GitHub Desktop.
Register a widget area with Genesis
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Register a widget area with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/register-sidebar/
*/
add_action( 'widgets_init', 'rtug_register_widget_area' );
function rtug_register_widget_area() {
genesis_register_widget_area( array(
'id' => 'rtug-widget-area',
'name' => 'Your New Widget Area',
'description' => 'The description of your widget area goes here.'
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment