Community
    • Login

    dark theme preference on main website doesn't work as expected.

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 4 Posters 221 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      shocked-gamer
      last edited by

      my main browser is firefox, i noticed after a browsing history (cookies, cache, etc) that the main website doesn’t remember the dark theme preference.
      i select dark theme, and after a webpage refresh it reverts to white.
      using a new and clean firefox profile doesn’t solve the issue. other browsers like chrome or edge work as expected.

      up until yesterday and before i clean my firefox browsing history, the site was remembering the dark theme preference.

      PeterJonesP Lycan ThropeL 2 Replies Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones @shocked-gamer
        last edited by PeterJones

        @shocked-gamer ,

        As far as I know, you just go down to the bottom of that main page at https://notepad-plus-plus.org/, click the button to toggle it, and then your browser should remember the cookie it sets after that.
        145b215e-0916-4cc8-990c-4d4a0b956cda-image.jpeg

        I just tried with Chrome, and it remembered my setting when I exit and reload.

        If that’s not working for you – maybe Firefox is not remembering cookies for the main domain, for some reason, so check cookie settings?


        updated, to remove the comment about auto, since after a reread of your original post, I didn’t see anything about auto, so it was irrelevant

        1 Reply Last reply Reply Quote 1
        • Lycan ThropeL Offline
          Lycan Thrope @shocked-gamer
          last edited by Lycan Thrope

          @shocked-gamer ,
          @peterjones is right. I only use Firefox myselff, and it’s in dark mode right now…however, you have to be signed in. For instance, I always sign out. When I do, the light theme comes back on, until I again, sign in. I believe it’s linked into your account, and it apparently works, or it wouldn’t go dark after I’ve signed in.

          1 Reply Last reply Reply Quote 0
          • M Offline
            myfancytextgenerator
            last edited by

            One more specific Firefox setting worth checking, since clearing your history is what started this: go to Settings > Privacy & Security, then look under “Cookies and Site Data”. If “Delete cookies and site data when Firefox is closed” is ticked, the preference cookie the theme toggle sets gets wiped every time Firefox closes, so the site can never remember your choice. The toggle itself still works for the current page load, which matches what you are seeing.

            Also worth ruling out: any privacy or ad-blocking extension that clears cookies automatically, and whether you are opening the site in a private window (cookies there never persist). As a quick test, toggle dark theme on, then check whether a cookie for the site exists afterwards — if there isn’t one, the browser isn’t storing it at all, which points back to one of the above.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors