Sorry for your time. Was too forgetful to check server logs. It's my mistake, I didn't deactivate the nodebb-plugin-ns-slugify which made for 0.7.1 version, not for 0.7.0. 😐
Don't Laugh at Me: How to Add JS to Widget to Display Text
Please keep all snickering to a quiet din!
How would I go about creating a script to display text in a NodeBB widget based on the value of a variable? For example when I try the following I get an error that
document.writeis not a function.
You want something like this
@baris Thank you. It is working great.
I have to say that programmatically being able to show and hide content in a widget is fabulous. I now have a
Global > Global Headerwidget that displays an image and text only when it is the "home" page.
This is how I implemented one widget: