npm i [email protected]
Then rebuild and restart nodebb.
Solved Question: CSS for Theme
-
Is there a way which I can have a theme using CSS instead of inputting them into the ACP.
I want to do this to prevent my staff from stealing the site's CSS code.
-
@EnDylan what makes you think adding the CSS to the theme will make it invisible to your staff?
-
@pichalite I think you misunderstood my question. What I meant is to compile the CSS into a theme and not type it into the ACP. I understand that my staff would still be able to look for the CSS but it would be more difficult for them to do so if it was a theme.
-
Yes, you can.
-
How to do that?
-
Hi @EnDylan -- your best bet would be to create a new theme, either by forking one of the existing themes (like Persona!), or creating a new one using a skeleton theme such as https://github.com/NodeBB/nodebb-theme-quickstart
-
_ _ __ __ _______ _ _ _____ _ _ _____ /\ | \ | | \ \ / / |__ __| | | | | |_ _| | \ | | / ____| / \ | \| | \ \_/ / | | | |__| | | | | \| | | | __ / /\ \ | . ` | \ / | | | __ | | | | . ` | | | |_ | / ____ \ | |\ | | | | | | | | | _| |_ | |\ | | |__| | /_/ \_\ |_| \_| |_| |_| |_| |_| |_____| |_| \_| \_____| _ _ _ _ (_) (_) | | | | _ ___ _ __ ___ ___ ___ _ | |__ | | ___ | | / __| | '_ \ / _ \ / __| / __| | | | '_ \ | | / _ \ | | \__ \ | |_) | | (_) | \__ \ \__ \ | | | |_) | | | | __/ |_| |___/ | .__/ \___/ |___/ |___/ |_| |_.__/ |_| \___| | | |_|
-
@julian said in Question: CSS for Theme:
Hi @EnDylan -- your best bet would be to create a new theme, either by forking one of the existing themes (like Persona!), or creating a new one using a skeleton theme such as https://github.com/NodeBB/nodebb-theme-quickstart
Okay. Thanks!