I've installed wikimedia on my own machine & I'm in the gradual process of building a wiki. My eyes prefer darker themes, so I hunted up Skin:Vector-DarkCSS (https://www.mediawiki.org/wiki/Skin:Vector-DarkCSS) on the web & applied it to the wiki.
Though I can only apply it (via Special Pages > Users and rights > Preferences > Tab->Appearance) in a fashion that works when I'm logged in.
It is possible to make this work globally (logged in or not), though I don't understand how to do this, as the page (linked above) gives too few instructions for one who has no knowledge of CSS & its uses.
Any help will be much appreciated, thanks. ;)
[edit:] With the above I also edited the LocalSettings.php file to include $wgAllowUserCss = true;
I should mention that I’ve also used the:
Special pages > Users and rights > Preferences > Tab-Appearance - Skins - Shared CSS/JavaScript for all skins: Custom CSS section to install the Skin:Vector-DarkCSS code.
With the $wgUseSiteCss = true; added to the LocalSettings.php , but it makes no difference, it still requires that there is someone logged in. I guess what it does is that it works for anyone who is logged in, & not just the person who uses the $wgAllowUserCss = true; method as mentioned in my previous post.
There must be a way to change the entire wiki colour scheme permanently whether anyone is logged in or not?
Global Hooks seem to go in etc/environment and this file says " Syntax: simple "KEY=VAL" pairs on separate lines" not sure if this helps?
Thanks robin, but no, this has to happen inside of the mediawiki installation.