Skip to main content
Topic: Anyone know how to globally change the skin colour of a MediaWiki site? (Read 1183 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Anyone know how to globally change the skin colour of a MediaWiki site?

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 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;

Re: Anyone know how to globally change the skin colour of a MediaWiki site?

Reply #1
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?

Re: Anyone know how to globally change the skin colour of a MediaWiki site?

Reply #2
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?

 

Re: Anyone know how to globally change the skin colour of a MediaWiki site?

Reply #3
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.