Last active
August 29, 2015 14:20
-
-
Save reasonstousegenesis/3e28fffa848755682fdc to your computer and use it in GitHub Desktop.
Register a sidebar with Genesis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Register a sidebar with Genesis | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/register-sidebar/ | |
*/ | |
add_action( 'widgets_init', 'rtug_register_sidebar' ); | |
function rtug_register_sidebar() { | |
genesis_register_sidebar( array( | |
'id' => 'sidebar-post', | |
'name' => 'Post Sidebar', | |
'description' => 'This sidebar displays on Posts but not Pages.' | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment