How can I set my page switch to dark theme anytime when users reload or re-open my home page? #2808
-
Dear all, Thx!!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The line responsible for storing this information is this: Line 17 in 89f7ca7 Now, I don't think removing it is a good choice, because probably every new page you open might always load the dark theme even though the light one was selected. I believe the best for you is to set the default as the dark theme instead of getting the system preference from the user (but only on the first load): Line 213 in 89f7ca7 or even disable light theme. |
Beta Was this translation helpful? Give feedback.
The line responsible for storing this information is this:
al-folio/assets/js/theme.js
Line 17 in 89f7ca7
Now, I don't think removing it is a good choice, because probably every new page you open might always load the dark theme even though the light one was selected. I believe the best for you is to set the default as the dark theme instead of getting the system preference from the user (but only on the first load):
al-folio/assets/js/theme.js
Line 213 in 89f7ca7
or even disable light theme.