- This topic has 9 replies, 4 voices, and was last updated 2 years, 6 months ago by
David.
-
AuthorPosts
-
August 12, 2018 at 2:54 am #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
August 12, 2018 at 9:01 am #646379Leo
StaffCustomer SupportHi there,
This should help:
https://docs.generatepress.com/article/sidebar-layoutLet me know ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 12, 2018 at 12:24 pm #646495Asen
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
August 12, 2018 at 12:55 pm #646519Leo
StaffCustomer SupportThe 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-646379Let me know if this helps.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 12, 2018 at 9:36 pm #646659Asen
Hey Leo,
That’s cool! It works when I change it from the Customizer.
Many thanks for your precious help!Asen
August 13, 2018 at 7:55 am #647020Leo
StaffCustomer SupportNo problem ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 24, 2019 at 6:44 am #1043254Sven
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,
SvenOctober 24, 2019 at 7:18 am #1043277David
StaffCustomer SupportHi 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; } }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 25, 2019 at 11:41 pm #1044782Sven
Hi David,
works! Thank you… ๐
SvenOctober 26, 2019 at 8:49 am #1045270David
StaffCustomer SupportYou’re welcome
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.