Site logo

Archived topic

Unable to hide sidebar on 'Blog' page.

9 replies · Started by Asen on August 12, 2018

Viewing posts 1–10 of 10

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

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

Hey Leo,

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

Asen

No problem :)

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

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;
    }
}

Hi David,
works! Thank you... :-)
Sven

You're welcome

This archived topic is closed to new replies.