Replies: 2 comments
-
Not a developer here, but I can think out loud. It may help you: Papermod uses localStorage to remember which theme the user has chosen. If you look carefully, you see it in the code. The code is Remark42 must have a similar function and variable, except you only implemented the variable (light/dark). The function, that suppose to store the state of theme in localStorage, is missing. Like I mention earlier, I'm not a developer, so I cannot go into Remark42 source files and find what it is you need. You need to find the code that stores the state of Remark42 theme in wherever does it and put that in |
Beta Was this translation helpful? Give feedback.
-
I got it to work by doing this:Footer:
In your remark config
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using Papermod with the Remark42 comment system.
Both themes are used and a switch between them. By default, both Papermod and Remark use a light theme.
Remark has a function call to change the theme
Which changes the comment box from light to dark and vice versa.
I am having the following issues:
layots/partials/footer.html
Of course, this only works for the moment the theme is switched.
I tried to fix it in the following way:
layots/partials/header.html
It doesn't work for me. How can I fix this correctly? Let me know if you need any other information.
Beta Was this translation helpful? Give feedback.
All reactions