Is changing theme on meta stored as a user setting or cookie based?

I often have to rechange my default theme from the drop menu

Unavngivet

  • is the setting cookie based and not profile stored?

Or why do I have to change the theme when I login?

1 Like

I think swapping from the sidebar is just for that session, the setting at https://meta.discourse.org/my/preferences/interface is across all sessions, if you select the “Make this the default theme on all my devices” checkbox.

1 Like

Yes, it’s session based. The component utilizes setLocalTheme(); which is the equivalent of changing this interface setting with the “default on all devices” box unchecked.

Screenshot 2024-01-16 at 10.56.29 AM

This way the same functionality works for both logged-in and anonymous visitors.

I think I can include makeThemeDefault when logged in, so it persists along with the account.

7 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.