Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Add blog sidebar to blog (home.php), posts (single.php), categories, and tags
- add_action('genesis_before_sidebar_widget_area', 'jds_get_blog_sidebar');
- function jds_get_blog_sidebar() {
- if (is_home() || is_single() || is_category() || is_tag()) :
- remove_action( 'genesis_sidebar', 'ss_do_sidebar' );
- remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );
- dynamic_sidebar( 'blog' );
- endif;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement