Dynamic switcher

Dynamic switcher (Local storage) is additional Option for Switcher block.

You can enable these options only with enabled Query addon.

It extends range of usage for switcher block. This option can enable saving user’s choice when he reopens site or reload page.

Additionally, this option can assign special class to BODY so you can style your elements differently depending on previous user’s choice.

Just few examples where this can be helpful:

  1. Making Night Mode
  2. Grid or List view for shop or archive pages
  3. Cookie related and GDPR popups
  4. Different Homepage view depending on user’s choice

You can save it to local storage or to cookie. Local storage is pure javascript method (so, you don’t use cookie). Cookie has more functionality because you can use it dynamically or with your third party plugins. For example, you can combine it with visibility block and Cookie condition

Copy this post’s content
Copy code below, and paste it (CTRL+V) in content of page