dark mode

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #324

    Hi there, does Dark Mode store a cookie? Because when enabling cache, the mobile clients do not store correctly the chosen version (light/dark).

    eg. if light is default, and chosen dark, when you switch page it will go back to light.

    Asking this becausse I want to add it as an exclusion to my caching system.

    Thank you!

    LenVan SupportLenVan Support

    Hi, Rwky.

    Yes, the theme uses cookie “pniber_night_mode”.

    If “light” is default:
    pniber_night_mode = ""
    if “night” is default or you swith to nigth mode:
    pniber_night_mode = "night"
    and the “night-mode” class is added to the “body” tag.

    Best regards, LenVan

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘dark mode’ is closed to new replies.