I'm currently working on a skin I'm helping develop, and I was wondering if it is possible to have different skins use different wiki logo pictures?
I want it so that when a user changes from one skin to the custom skin, the new skin loads up with the preselected logo specific to that skin, but switches back to the default logo when the skin is reverted back to the default.
I was thinking it would be possible to do this via an edit to the screen.css file of my custom skin (based on Vector), but I'm not sure what I should be doing or if that would work properly.
If anyone has some advice, thank you in advance.
On Sun, Feb 17, 2013 at 6:09 PM, Arcane 21 arcane@live.com wrote:
I'm currently working on a skin I'm helping develop, and I was wondering if it is possible to have different skins use different wiki logo pictures?
I want it so that when a user changes from one skin to the custom skin, the new skin loads up with the preselected logo specific to that skin, but switches back to the default logo when the skin is reverted back to the default.
I was thinking it would be possible to do this via an edit to the screen.css file of my custom skin (based on Vector), but I'm not sure what I should be doing or if that would work properly.
If anyone has some advice, thank you in advance.
Simplest thing you can do here is to just hardcode the alternate logo in your alternate skin. :)
But you probably could fiddle with $wgLogo in a hook if you need the same value somewhere else.
-- brion
You can add this code in each skin's css file (ex: MediaWiki:Vector.css, MediaWiki:Modern.css)
#p-logo a { background-image: url('http://www.example.com/w/logo_you_want.png') !important; }
Ah, not modern skin not has logo, so you can add that line to MediaWiki:Monobook.css
2013/2/19 devunt devunt@gmail.com:
You can add this code in each skin's css file (ex: MediaWiki:Vector.css, MediaWiki:Modern.css)
#p-logo a { background-image: url('http://www.example.com/w/logo_you_want.png') !important; }
Thanks guys, this was exactly the information I needed.
From: devunt@gmail.com Date: Tue, 19 Feb 2013 14:53:32 +0900 To: mediawiki-l@lists.wikimedia.org Subject: Re: [MediaWiki-l] Is it possible to use different logos for different skins?
Ah, not modern skin not has logo, so you can add that line to MediaWiki:Monobook.css
2013/2/19 devunt devunt@gmail.com:
You can add this code in each skin's css file (ex: MediaWiki:Vector.css, MediaWiki:Modern.css)
#p-logo a { background-image: url('http://www.example.com/w/logo_you_want.png') !important; }
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org