Themes not loading properly.
-
I'm trying to install some new themes; however, every time I enable a theme, the CSS fails to load properly. Is this because I am using MongoDB instead of Redis? Only the default themes seem to be working.
-
@kelso said:
Make sure to restart your nodebb, and then also force a reload of cache in your browser. In Chrome on windows its control-f5, and on mac it would be command-shift-r.
That didn't seem to work unfortunately. Do you have any other suggestions?
-
I should note that the theme appears to load on the admin control panel but not on the forum itself. Also, when clicking "inspect element," the pages appear to be loading a lavender.js file even though I'm using a different theme.
-
@kelso I figured it out after some struggling. There seems to be an error in the theme plugins, because they all seem to point to the wrong URL for the css. My guess is that older versions of NodeBB required that the CSS be located in css/theme.css while now it's just stylesheet.css.
-
@julian said:
@limitedward -- you may have stumbled upon a bug related to the new themes refactor that I committed today. Thanks for the report, I will look into it soon!
You can find what I'm talking about under the "header" file of the theme plugin templates.
-
Thanks @limitedward -- https://github.com/designcreateplay/NodeBB/issues/1127
Edit: Pushing fix...
-
@limitedward Fixed via this commit, please pull the latest version.