Custom CSS in ACP
Unsolved
Technical Support
-
I started with very simple CSS rule:
body { background-color: red; }
With that, it's suppose to change the background color of my forum to red without rebuild right? And I'm suppose to see another css rule for body in inspect with background-color set to red? Thing is, the rule is not showing when I inspect it.
I'm using Slick theme by the way.
-
@baris Update: Custom CSS works in Persona, but not in Slick.
-
-
This post is deleted!
-
This post is deleted!
-
@baris Okay, I just made it work. I just copied useCustomHTML from Persona and added style type. It looks like this now.
{{{if useCustomHTML}}} {{customHTML}} {{{end}}} {{{if useCustomCSS}}} <style type="text/css">{{customCSS}}</style> {{end}}}
and this code does not work anymore, just FYI:
https://github.com/pichalite/nodebb-theme-slick/blob/master/templates/header.tpl#L25-L27<!-- IF useCustomHTML --> {{customHTML}} <!-- END --> <!-- IF useCustomCSS --> <style type="text/css">{{customCSS}}</style> <!-- END -->
Copyright © 2024 NodeBB | Contributors