Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //* Only display sidebar on single posts
- add_filter( 'genesis_pre_get_option_site_layout', 'content_sidebar_layout_single_posts' );
- function content_sidebar_layout_single_posts( $opt ) {
- if ( is_single() ) {
- $opt = 'content-sidebar';
- return $opt;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement