Hello,
Currently I have my homepage (blog) not showing the right side bar, but the space for it is still there.
When I remove the right side bar from the entire site from customization the home page looks correct. But I want the rest of the site content/side bar.
Plus on the home page I’ve removed the verbiage from the blog excerpt etc. How do I remove the … elipse and extra spaces.
You can remove the sidebar from the blog by going to “Customize > Layout > Sidebars” in the Customizer. Make sure you’re viewing the blog in the Customizer, and you’ll see the “Blog Sidebar Layout” option.
Set that to No Sidebar and you should be good to go.
add_filter( 'generate_sidebar_layout','generate_front_page_sidebar_layout' );
function generate_front_page_sidebar_layout( $layout )
{
// No sidebars on the front page
if ( is_front_page() )
return 'no-sidebar';
// Or else, set the regular layout
return $layout;
}