Manual talk:$wgLogo

Noob needs help
Hello, where do I change the logo? Should i go to an article called "MediaWiki: $wgLogo"? 213.64.166.47 18:07, 22 July 2006 (UTC)
 * No, you must change the variable $wgLogo. For this, go in the file LocalSettings.php and write at the end :

$wgLogo = "index.gif";
 * where /image.png is the name of your file. The default value is the file /skins/common/images/Wiki.png. ~ Seb35 13:27, 23 July 2006 (UTC)
 * And where's that file? (I'm still a noob)
 * If your wiki is up and running, it should be in the same directory as index.php (perhaps document root, perhaps /wiki, etc.). —dto 07:51, 8 September 2006 (UTC)


 * What are the proper dimensions for this file? -Derick Eisenhardt 2006-01-08@00:01CST
 * Added to article. --HappyDog 12:15, 8 January 2007 (UTC)


 * The logo should be no larger than 135p X 135p. It can be smaller.

Immediately after a successful install of Version 1.9, I had trouble replacing the default MediaWiki logo. I edited the LocalSettings.php file as directed. Since MediaWiki Version 1.9 LocalSettings.php does not contain a $wglogo variable, I added one. But it did not work. I tried using a relative path, then I tried using an absolute path. Neither worked. This was frustrating. Finally, I included the $wgScriptPath in the path statement and it worked. It looked like this:

$wgLogo = "$wgScriptPath/images/logo.png";

(My custom logo was placed in a directory named images, which was in the directory where I installed MediaWiki, like this: www.example.com/directory1/wiki/images.) In the LocalSettings.php file, $wgScriptPath was already defined as /directory1/wiki.

I don't know enough about php to know why this worked instead of an absolute or relative path. Maybe it was just the way my host server was set up, or maybe it's the way variables work. Anyway, if you're having this trouble, try it. --Jable 20:48, 4 February 2007 (UTC)

I had also great difficulties solving the logo problem. I am generally surprised that things are so complicated. I mean we have the year 2007 and i am sure there would be ways to make things easier. Why that's not the case is a riddle to me.

Anyway this is how it was solved. I did what was suggested at the very beginning, although i was scared to add or do anything in the LocalSettings.php file. I just added this as the last line, but make sure it's before that  ?>   (which is the end of the code, in case you don't know anything about programming)

$wgLogo = "index.gif";

however instead of index.gif, you use the name of your file. mynewlogo.gif (for example)

make sure your actual gif (mynewlogo.gif) is uploaded. This should work fine then. I was surprised when it did.

3 March 2007 I have been creating webpages for a few years now using html code and am surprised how difficult I'm finding this. I have struggled even to change the logo, like some of you have and I'm glad I found this page. I tried to follow the tutorial from Siteground.com, but ended up just deleting the default logo. The answer to my problem was to add the line: $wgLogo = "images/logo.jpg"; to the end of the LocalSettings.php file (before the ?>) and then place the logo file itself in the mediawiki-1.9.3/images folder. (I discovered where to place this by using my ws-ftp software and placing the file in different folders until I found one that worked! Ken.

March 23, 2007 Another Noob needs detail on "modifying the site CSS" I would like to use a larger logo.