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 | |
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>'; | |
} |
Share the knowledge!
I hope this article has helped you in your web design/development journey! If you found it helpful, share it on your socials!
Have Questions? I can help! Get Started
Leave a Reply