[Resolved] Unable to hide sidebar on 'Blog' page.

Home Forums Support [Resolved] Unable to hide sidebar on 'Blog' page.

Home Forums Support Unable to hide sidebar on 'Blog' page.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #646173
    Asen

    Hello,

    I want to disable the sidebar on my ‘BLOG’ page. To do so I edit the blog page and I choose the option Content (no sidebars) but still the right sidebar is visible. How to hide it only on the Blog page?

    Thank you!

    Asen

    #646379
    Leo
    Staff
    Customer Support

    Hi there,

    This should help:
    https://docs.generatepress.com/article/sidebar-layout

    Let me know ๐Ÿ™‚

    #646495
    Asen

    Hi Leo,

    Thanks for your answer.
    I tried to use the Layout settings on the ‘Blog’ page and as explained I checked the ‘Content (no sidebars)’ option but it doesn’t work.I am not at 100% sure but before it worked.

    I just saw this:

    “Please note that WordPress ignores metabox values on index pages like blog and archive so this meta box wonโ€™t work for those pages”

    https://docs.generatepress.com/article/layout-metabox-overview/

    I am not sure to understand how to configure it using Functions. Could you please help? How to do it?

    Thanks!

    Asen

    #646519
    Leo
    Staff
    Customer Support

    The blog sidebar layout is in the customizer options. You should be able to find by following the link provided above:
    https://generatepress.com/forums/topic/unable-to-hide-sidebar-on-blog-page/#post-646379

    Let me know if this helps.

    #646659
    Asen

    Hey Leo,

    That’s cool! It works when I change it from the Customizer.
    Many thanks for your precious help!

    Asen

    #647020
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

    #1043254
    Sven

    Hi there,

    how can I change the design of the blog overview? On mobile phones (and only there) the right sidebar should be hidden…

    https://weicheswasser.org/blog/

    I guess it’s some css with hide-on-mobile?!

    I appreciate your answer,
    Sven

    #1043277
    David
    Staff
    Customer Support

    Hi there,

    first off adjust your Flex CSS on the site content so it only applies to desktop like so:

    @media(min-width: 769px) {
        .site-content {
            display: flex;
        }
    }

    Then this CSS to remove the sidebar on mobile

    @media(max-width: 768px) {
        #right-sidebar {
            display: none;
        }
    }
    #1044782
    Sven

    Hi David,
    works! Thank you… ๐Ÿ™‚
    Sven

    #1045270
    David
    Staff
    Customer Support

    You’re welcome

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