How to change the logo in MediaWiki website ?

From PheonixSolutions
Jump to navigation Jump to search

Introduction

[edit]

MediaWiki, the software behind Wikipedia, allows users to customize their website's appearance, including changing the logo. This guide provides step-by-step instructions on how to change the logo on a MediaWiki website.

Prerequisites

[edit]

1. Access to the server hosting the MediaWiki website.

2. An image of the new logo in PNG, GIF, or JPEG format.

3. Basic knowledge of using terminal commands and text editors.

Steps

[edit]

Step 1: Login to the Server:

Access the server where your MediaWiki website is hosted using SSH.

Step 2: Upload the Logo:

Transfer the new logo image to the server using the scp command.

Step 3: Locate Document Root:

Identify the document root directory for your MediaWiki website in the web server configuration file. This directory typically contains the website's files.

Step 4: Move the Logo:

Move the logo image to the /resources/assets directory within the document root of your MediaWiki website.

Step 5: Edit LocalSettings.php:

Open the LocalSettings.php file located in the MediaWiki installation directory using a text editor such as Vim.

    vim LocalSettings.php

Edit the line “ $wgLogos “ to change the logo as mentioned in the screenshot below.



Also edit the line, From
$wgEnableUploads = false;
To,
$wgEnableUploads = true;

Step 6: Save and Exit:

Save the changes made to the LocalSettings.php file and exit the text editor.

Step 7: Verify changes:

Check the MediaWiki website to confirm that the logo has been successfully changed.

Conclusion

[edit]

By following these straightforward steps, you've successfully changed the logo on your MediaWiki website. Customizing the logo allows you to personalize your site's appearance and branding to better suit your needs or preferences. Keep in mind that you can further customize your MediaWiki installation to enhance its functionality and appearance according to your requirements.