This forum is no longer active. Please post your questions to our new community site

Forums MediaWiki

Fixing link to wiki logo

Subscribe to Fixing link to wiki logo 4 post(s), 3 voice(s)

Avatar Stephen 2 post(s)

How do I go about getting the default mediawiki.png file (or a file of my own design) to appear on the top left corner. Ie how do I tweak the LocalSettings.php file so it references the right $wgStylePath and $wgScriptPath and points to the logo in /skins/common/images/mediawiki.png?

Avatar Stephen 2 post(s)

I managed to work it out by doing what I should have done in the first place – search the Mediawiki documentation! Courtesy of $wgLogo and How do I change the logo I worked out the appropriate tweaks to the LocalSetting.php file – adding the following block of code to the end of the file:

##wiki logo
$wgStylePath = ”$wgScriptPath/skins”;
$wgLogo = ”$wgStylePath/common/images/mediawiki.png”;

Avatar antonio 621 post(s)

Hi Stephen,

Thanks for the info :)


Avatar andrewwells 4 post(s)

hi stephen, I’m new to mediawiki, but i tried adding your code to my localsettings.php and it broke my wiki. Now when I try to load it I get a message “Andrew’s Wiki Has a Problem” and that is all. I have no idea how to fix this. I removed the lines of code for the logo, but it still isn’t working. Do you know whats up? Thanks


Forums MediaWiki