Skip to content

Instantly share code, notes, and snippets.

@mwhiteley16
Last active August 29, 2015 14:00
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 mwhiteley16/4f0a57ea6ca9fb4c1139 to your computer and use it in GitHub Desktop.
Save mwhiteley16/4f0a57ea6ca9fb4c1139 to your computer and use it in GitHub Desktop.
Genesis: Add Widget Area
<?php
/** Add custom sidebar */
genesis_register_sidebar(array(
'name'=>'Home Sidebar',
'id' => 'home-sidebar',
'description' => 'Homepage Side Area in left sidebar under image.',
'before_widget' => '<div id="%1$s"><div class="widget %2$s">',
'after_widget' => "</div></div>\n",
'before_title' => '<h4><span>',
'after_title' => "</span></h4>\n"
));
//show it
<?php dynamic_sidebar( 'home-sidebar' ); ?>
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment