Copying Vanilla Theme
-
Alright, this is about to drive me crazy. I guess there are other ways I'll try theming but this bugs me:
- Successfully duplicated the theme.
- Renamed it to "NodeBB Banana".
- Replaced the info in theme.json / package.json / plugin.json
- Successfully selected the theme in the ACP.
- Restarted nodeBB.
... I edited the header.tpl of the Vanilla theme, and after all these steps it only shows me the header.tpl of the Vanilla theme (instead of Banana)! What am I overlooking?
-
I had the same problem, but after looking through the code I found the solution...maybe you have as well, but I thought I'd put it up here for others.
When you clone the nodebb-theme-vanilla folder you also have to add this line to your theme.json file:
"templates": "templates"
Should work fine after that. Basically, what happens is when nodebb loads it looks for that line in your theme.json file and if it doesn't find it it defaults to using the vanilla theme templates. So, even though it might be telling you your theme is loaded, it's not...kind of confusing.
-
@mootzville You are my hero. That did the trick! Hats off to you, Sir.
Now on to actual theming!
-
No worries @sdnyco. Enjoy!
-
@mootzville Thanks a lot for that, I'll keep this in mind for future issues!
-