Your initial header.tpl should work with the latest version of nodebb, app.template is no longer necessary since that is available in ajaxify.data.template
Live editing - themes and templates?
-
With my nodebb forum running...
-
Can I simply edit the theme and template files (.less,, .tpl, .js, etc).
-
Reload my forum
-
See the changes?
Thanks for reading.
-
-
I'm actually doing that.
Some changes, can go in the Admin Panel, through Appearance > Custom CSS & HTML. Changes will appear once you save them on that panel. No need to restart Nodebb.
But if you feel like playing with the tpl files, you should find them on your FTP, in the public folder > templates.
For the CSS files, you'll have to look in node_modules > theme used to find them.
In those two cases, you'll have to
./nodebb restart
to see the changes.Hope it helps!
-
@TaLoche Thank you!
-
-
@pichalite Oh. I wish to change (remove/add elements) from the persona theme. I also wish to do the same with feature topics extended plugin. How should I proceed?
-
@noobbb either fork the theme, make changes in fork and use the fork or create a child theme by just providing the modified tpl's
-
@pichalite Thanks.
-
@pichalite that's strange, I did quite a few changes there and they stayed even after numerous restarts.
-
@TaLoche not possible
-
@TaLoche said in Live editing - themes and templates?:
@pichalite that's strange, I did quite a few changes there and they stayed even after numerous restarts.
They'll stay now, but if you run
./nodebb build
, they'll be regenerated and you'll lose those changes again. -
@julian thanks that's good to know.
I'll do as @pichalite recommended and fork the theme then.
Thanks!