Site logo

[Support request] Cannot Remove Widgets Right Sidebar (Blog)

Home Forums Support [Support request] Cannot Remove Widgets Right Sidebar (Blog)

Home Forums Support Cannot Remove Widgets Right Sidebar (Blog)

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #2223032
    John

    Hi,

    I cant’ get rid of a ‘Search field’ and ‘Archives’ of the blog’s right sidebar

    Blog is set to a static page. A user must be logged in to access blog posts.

    This is what I’ve done so far without success.

    1. Appearance > Widgets (all deleted)
    2. Customizer > Layout > Sidebars, sidebar layout, blog sidebar, single post sidebar all set to (no sidebars)
    3. Appearance > Elements > New Element: Sidebar > Sidebar Layout (content- no sidebars). DISPLAY RULES: Location (blog), Users (All Users)
    4. Server and browser caches cleared.

    What I want is for blog posts to render the full width of the content container without sidebars.

    Thanks for the help!

    John

    #2223034
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the page in question?

    You can use the private information field:
    https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    Let me know 🙂

    #2223039
    John

    Hi Leo,

    Access credentials sent.

    Thanks!

    John

    #2223049
    Ying
    Staff
    Customer Support

    Hi John,

    The right sidebar is enabled in the post editor of the sample post:
    https://www.screencast.com/t/0EHE1nyWY

    The layout element which you are using, only assigned to blog page, if you want to remove all sidebars for single posts as well, try add posts > all posts in the location of the layout element:
    https://www.screencast.com/t/UD1rwYdZxsZt

    #2223111
    John

    Hi Ying,

    As suggested, I added posts > all posts in Element (REMOVE BLOG SIDEBAR) > Display Rules > Location and cleared Server/Browser cache.

    The sidebar still shows.

    I also tried adding all individual post categories > category name(s)

    The sidebar still shows.

    #2223113
    Ying
    Staff
    Customer Support

    Then can you set the sidebar layout to default in each single post?
    https://www.screencast.com/t/0EHE1nyWY

    It looks like the sidebar setting in single post has the priority.

    You can remove all the single post related locations from the layout element.

    #2223114
    John

    I could do that but shouldn’t there be a way to do this without going to each individual post?

    #2223119
    John

    Another question is: how is it that a search field and archives are turned on in the sidebar? Where are these controlled if not in widgets? Remember, I have no widgets activated.

    #2223120
    Ying
    Staff
    Customer Support

    I would say that’s the way to do this right.

    But you could also give this PHP snippet a try to make things easier.

    add_filter( 'generate_sidebar_layout', function( $layout ) {
      
        if ( is_single() ) {
            return 'no-sidebar';
        }
    
        return $layout;
     } );
    #2223122
    Ying
    Staff
    Customer Support

    That’s the default widgets as placeholder to show you that the sidebar is there, for more info:
    https://docs.generatepress.com/article/sidebar-layout/#default-widgets

    #2255242
    Callista

    Hi there,
    I am having this exact same issue. I have sidebars turned off everywhere and all widgets deleted, but I still have them (search bar and archives) showing up on my posts page. I came here to search for this exact question. I’ve been using GP a long time and have never run into this before.
    I went to the page settings for the posts page. I can’t change the layout (there is no option). I created a new page and made sure it was set to no sidebars, and made that my posts page, and the sidebar appeared and the layout options disappeared. The sidebars follow whatever page I designate as the posts page.
    I’m starting to think there is a problem with the blog archive page?
    Thanks for any help you can give me.
    Best,
    Callista

    #2255253
    David
    Staff
    Customer Support

    Hi there,

    do you have any Layout > Elements in Appearance > Elements ?

    #2255256
    Callista

    Hi David,
    I feel so silly right now. I just checked my Snippets plugin and I had an “Add Sidebar” snippet turned on! (I guess from a previous layout issue.) Doh! Turned it off and voila! It went away. So sorry to waste your time.
    Have a great day!
    Best,
    Callista

    #2255259
    David
    Staff
    Customer Support

    No worries – glad to hear you found the issue 🙂 Have a great day too!

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