[Resolved] Home page different layout plus remove elipse

Home Forums Support [Resolved] Home page different layout plus remove elipse

Home Forums Support Home page different layout plus remove elipse

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #234397
    Janet Davis

    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

    #234446
    Tom
    Lead Developer
    Lead Developer

    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;
    }
    #234461
    Janet Davis

    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

    #234465
    Tom
    Lead Developer
    Lead Developer

    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/

    #234686
    Janet Davis

    Thank you, this worked like a charm!!!
    Jan

    #234748
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.