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 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;
}
This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.