Archived topic
Home page different layout plus remove elipse
5 replies · Started by Janet Davis on October 11, 2016
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.
https://www.everydayhomesteading.com/
Thank you again!
Jan
Hi Jan,
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.
To hide the ..., add this CSS:
.generate-columns-container .entry-summary {
display: none;
}
Tom,
The css worked great, thank you.
When I use the “Customize > Layout > Sidebars” in the Customizer it removes the side from the entire site, not just the front page.
Is there a way to just have it off the Home page which is actually last post?
Thank you
Jan
You can do that with a function:
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;
}
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
Thank you, this worked like a charm!!!
Jan
You're welcome :)