Custom CSS for plugin on ACP.
-
On v1.0.3? It used to read the css and less from the plugin.json, but it was removed. I made an issue about it, but the fix didn't make it into 1.0.3. imo, it should have been back-ported.
-
You could also use a link tag, linking to a css file in one of the
staticDirs
in your plugin.json, for instance, if your plugin has a file at/public/css/style.css
and the plugin.json with"staticDirs": { "public": "public" },
then in your template you could do
<link rel="stylesheet" type="text/css" href="/plugins/nodebb-plugin-yourplugin/public/css/style.css">
Copyright © 2024 NodeBB | Contributors