+8801 616 169 990
+

Blog

7

Jun, 2011

Page specific sidebar content in Genesis framework wordpress

By: | Tags: , , , , | Comments: 0

This is a simple task if you use the built in is_page() conditional tag in WordPress and use one of the Genesis structural action hooks. We’ll be using the genesis_before_sidebar_widget_area action hook in this example. <?php // Add additional sidebar content to the book page add_action(‘genesis_before_sidebar_widget_area’, ‘child_genesis_sidebar’); function child_genesis_sidebar() { if ( is_page(‘__SPECIFIC-PAGE-ID-OR-TITLE__’)) { ?> <your-content-code> <?php } } ?>

READ MORE