- This topic has 10 replies, 3 voices, and was last updated 4 years, 4 months ago by
David.
-
AuthorPosts
-
December 21, 2021 at 3:08 am #2055337
Francesco
Hi guys,
I created specific sidebars using Elements.
Everything works perfectly, but I cannot hide the sidebars in the mobile version of the site.I have searched the forum but have found nothing about it.
What I’m doing wrong?
Many thanks in advance.
Francesco
December 21, 2021 at 5:08 am #2055427David
StaffCustomer SupportHi there,
you will require CSS to hide them.
If you can link me to the site, so i can see the layout then i can advise the best way to do thatDecember 21, 2021 at 5:11 am #2055433Francesco
Hi David,
Many thanks in advance.
December 21, 2021 at 5:32 am #2055452David
StaffCustomer SupportOK so it looks like the Sidebar is made up of content within GB Container Blocks.
Edit those Container Blocks – in Advacnced > Additional CSS Class(es) add:hide-on-mobilemore info here on the GP built in
hide-on-*classes:https://docs.generatepress.com/article/responsive-display/#using-our-hide-on-classes
NOTE If you’re a GenerateBlocks Pro user, then in Advanced there are built in toggles to hide on mobile etc.
December 21, 2021 at 6:52 am #2055540Francesco
Hi David,
many thanks for your answer. Where should I add the CSS Class: https://www.dropbox.com/s/dpntcpr7qrxr6wm/Schermata%202021-12-21%20alle%2014.51.08.png?dl=0
December 21, 2021 at 7:21 am #2055572FranckJ
Hi,
Got similar question about a hero image: it looks great on desktop but I want to hide it on mobile so people don’t have to scroll. How could I do this?— EDIT —
Oops sorry, easy as this!
https://docs.generatepress.com/article/responsive-display/#using-our-hide-on-classesThanks 🙂
Franck
December 21, 2021 at 8:01 am #2055783David
StaffCustomer SupportIn the settings sidebar select
Bloccothere you will see a panel named Advanced, within there is the field for the Additional CSS Classes.December 21, 2021 at 8:05 am #2055790Francesco
I’m sorry David, but I can’t find what you’re talking about:
https://www.dropbox.com/s/uq95hlsfzvq0zq0/Schermata%202021-12-21%20alle%2016.04.09.png?dl=0
December 21, 2021 at 8:16 am #2055814David
StaffCustomer SupportIn your image you have the Shortcode block selected. You need to have the Container Block selected.
December 21, 2021 at 8:23 am #2055820Francesco
Oh my God… Got it.
Sorry for disturbing you with this silliness.
Thanks.
December 21, 2021 at 9:15 am #2055880David
StaffCustomer SupportNo problems – glad to be of help!
-
AuthorPosts
- You must be logged in to reply to this topic.