SiteGround (2024)

To change the MediaWiki default logo you should do the following:

1.Create an image for your logo with dimensions of 135×135 pixels.

The recommended format for the image is .png, but other formats like .gif or .jpeg are also ok. Note that if you upload image with different dimensions it may not be displayed.

2.Upload your logo image somewhere on your web hosting account.

For example, you can upload it directly in the public_html folder.

3.Add or edit the $wgLogo line in the LocalSettings.php to contain the path to your logo

The LocalSettings.php file is located under the directory where your MediaWiki is installed. If it is installed directly in the public_html, this file will also be there. If it is installed in a subdirectory of the public_html, the file will be located in the subdirectory.

You should open the LocalSettings.php and look for a line that starts with $wgLogo. If there is no such line you should add it yourself and if there already is such a line you should edit it to contain the path to your logo. For example, if we suppose that your logo is named logo.png and you have uploaded it directly in the public_html folder the line should look like:

$wgLogo = $wgScriptPath . ‘logo.png’

If you have uploaded the logo in a subdirectory of your public_html, be sure to paste the whole path. If you have uploaded your logo logo.png in the skins/common/images/ directory the line should look like:

$wgLogo = $wgScriptPath . ‘skins/common/images/logo.png’

4. If you have followed the instructions above and you still do not see your logo, make sure that in the LocalSettings.php the image upload is allowed.

To do this open the LocalSettings.phpfile and change the line

$wgEnableUploads = false;

to

$wgEnableUploads = true;

NB: It is possible to overwrite the default logo installed with MediaWiki, but this is strongly advised against, as an upgrade may end up overwriting it or change the default location of this file.

SiteGround (2024)
Top Articles
Latest Posts
Article information

Author: Neely Ledner

Last Updated:

Views: 5448

Rating: 4.1 / 5 (42 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Neely Ledner

Birthday: 1998-06-09

Address: 443 Barrows Terrace, New Jodyberg, CO 57462-5329

Phone: +2433516856029

Job: Central Legal Facilitator

Hobby: Backpacking, Jogging, Magic, Driving, Macrame, Embroidery, Foraging

Introduction: My name is Neely Ledner, I am a bright, determined, beautiful, adventurous, adventurous, spotless, calm person who loves writing and wants to share my knowledge and understanding with you.