Streaming live at 10am (PST)

Switching Stylesheets

#1

Howdy,

I’m trying to find a way to change the stylesheet on a button or link click and it stay in that way until the user changes it again. I’ve attempted some JQuery and cookie plugin but couldn’t quite get it to work properly.

This is the type of thing I’m trying to achieve - https://www.macularsociety.org/

I think one issue is that you can’t pinpoint to the main Webflow .css file file as whenever you republish, the link changes.

Any thoughts on how/if this is achievable?

1 Like
#2

Hello @joejlomax

I think you can achieve this using the method here > http://nightmode.webflow.io/

Project link > https://webflow.com/website/Night-Mode-for-Blogs-and-Articles-or-Cloneable

or > http://light-and-dark.webflow.io/

project link > https://webflow.com/website/Light-and-dark

Hope this helps :webflow_heart:

#3

Thanks Piter!

This is changing the stylesheet, however I need the chosen style sheet to stay changed through the website, without having to click a button every time a new page is loaded

1 Like
#4

Ou okey :smile: Maybe I need some time to think.

1 Like
#5

Take a coffee!

2 Likes
#6

I have one :smile: Second to come :coffee: