Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Register a Genesis Sidebar and Output
genesis_register_sidebar( array(
'id' => 'widget-slug',
'name' => __( 'Widget Location Title', 'child_theme_name' ),
'description' => __( 'Widget Location Description.', 'child_theme_name' ),
// an example of how to output the registered sidebar to a specific theme location
add_action( 'genesis_after_content', 'home_bottom_section' );
function home_bottom_section() {
echo '<div class="bottom-section">';
dynamic_sidebar( 'widget-slug' );
echo '</div>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.