Streaming live at 10am (PST)

Hide / Show Globally

I’m trying do use a button to hide divs with a specific class across my site. Does anyone knows how i can achieve this functionality? I would really appreciate it.

Side Note. It’s more like a switch that hides content on all page rather than just the page am on.

Hi, welcome to the forum :smile:

Use interactions to show and hide the div.

Apparently it doesn’t work across the site… it only affects each page when pressed on it

You can only do this with JavaScript, either with cookies or localstorage to save the state on each user’s browser.

1 Like

That sounds very interesting, do happen to have that code or such resource?? This is like a must have for my site to function properly