Remove Sidebar from Blog Posts

We knew that we can remove the sidebar from blog post using Genesis Layout option. But if you have 1000+ posts and edit every single post one by one and change the layout then it will be very painful process for you. So I made a quick

343333

tweak for it. I did this programmatically. I added the following code in functions.php file:

add_action('genesis_meta', 'full_width_blog_post');
function full_width_blog_post(){
if( is_singular('post') ):
//* Force full width content layout
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
endif;
}

Share This Article

Subscribe Membership Plan ($9.99/mo)

  • Get full access to all premium tutorials
  • Get Support for the posted content
  • Request for specific how-to tutorials
  • Cancel the subscription at anytime

Reader Interactions

Leave A Reply

Your email address will not be published. Required fields are marked *