Site logo

Archived topic

Hide Element from mobile

10 replies · Started by Francesco on December 21, 2021

Viewing posts 1–11 of 11

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

Hi 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 that

OK 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-mobile

more 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.

In the settings sidebar select Blocco there you will see a panel named Advanced, within there is the field for the Additional CSS Classes.

In your image you have the Shortcode block selected. You need to have the Container Block selected.

Oh my God... Got it.

Sorry for disturbing you with this silliness.

Thanks.

No problems - glad to be of help!

This archived topic is closed to new replies.