Themecss question re file replacing itself
-
I'm having issues with the less files located in node_modules/nodebb-theme-vanilla.
I add a background-image to the body of my css, however it is slashed-out in the inspector when I restart the server.
The changes are being detected, however they are not being applied. Has this happened to anyone? -
Solved my own problem. I've been editing the vanilla theme, however it seems that the actual default theme which is cerulean is overriding my changes. Thought I'd share for the next person.
-
im having the same problem with lavander... trying to do the minimal changes (colors for start)... edited the .less files... nothing happend..
"forked" the lavander theme (copy paste) the files... edited them... (style and variables) changed on the admin... restarted the server and the same color (purple) is on..... any thoughts? im new to less and node..
-
give us a bit more details, what file exactly did you change in relative to root? I'm assuming
mynodebb/node_modules/nodebb-theme-myforkoflavender/less/variables.less
? and then you activated the correct theme and then restarted admin?in that file change
@brand-primary
to a diff colour and see if the purple changes, let us know if you aren't having any luck -
@psychobunny Oh, also, if he has lavender alongside "lavender-copy", his
theme.json
might not have been updated to show the new name, and NodeBB would've loaded just the one theme. (I actually don't know how it would handle two themes with the sameid
) -
ah yeah that's a good point, he should be changing the id as well, it'll load the original if that's what he did
-
This post is deleted!
-
Hi,.. thanks for tips..
turns out that nodebb is not loading my theme.. its a lavander fork (copy the whole directory -R ) BUT with a different id on theme.json
i thought it was not loading my changes.. but if i load another theme like.. Cosmo.. and then load my theme... nodebb still show Cosmo template... : /
theme.json
{ "id": "nodebb-theme-fork", "name": "Lavender Theme fork", "description": "A simple theme for NodeBB. Check out the theming guide that accompanies this work at http://burnaftercompiling.com", "url": "https://www.github.com/psychobunny/nodebb-theme-lavender", "screenshot": null, "templates": "templates", "staticDir": "static" }