Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Manage MediaWiki Skins

This guide shows you how to change the look of your MediaWiki site by adding and choosing skins.

CMS and Apps2 min read17 steps

What is a MediaWiki skin?

MediaWiki is the free tool that powers wiki sites, which are websites anyone can edit. A skin is the look of the site: the colors, the menu position and the page layout. It is like a cover on a book. The words inside stay the same.

Do not mix this up with a "template". In MediaWiki, a template is a reusable block of text inside a page. It is not about looks. The look is the skin.

Before you start

You need to be able to edit files. Use File Manager in your hosting control panel. Back up LocalSettings.php first. A typing mistake in that file can take the wiki offline.

Steps: pick a skin as the default

  1. Log in to your hosting control panel and open File Manager.
  2. Open the folder where MediaWiki is installed.
  3. Right-click LocalSettings.php and choose Copy. Save the copy as LocalSettings.php.bak.
  4. Right-click LocalSettings.php and choose Edit.
  5. Find the line that starts with $wgDefaultSkin.
  6. Change the name in the quotes, for example:
$wgDefaultSkin = "vector";

This makes the Vector skin the default for all visitors. Other common names are monobook and timeless, if they are installed.

  1. Click Save Changes and refresh your wiki.

Steps: add a new skin

  1. Download the skin from the official MediaWiki website. Make sure it fits your MediaWiki version.
  2. Upload the ZIP into the skins folder with File Manager.
  3. Right-click the ZIP and choose Extract.
  4. Open LocalSettings.php to edit it.
  5. Add a line to load the skin. Use the skin's own name:
wfLoadSkin( 'Timeless' );

This tells MediaWiki to load the Timeless skin. Older MediaWiki versions use a require_once line. The skin's page tells you which one to use.

  1. Save the file.

Let users choose their own skin

  1. Log in to your wiki.
  2. Click Preferences at the top.
  3. Open the Appearance tab.
  4. Pick a skin and click Save.
Tip: To remove a skin, delete its wfLoadSkin line first. Then delete its folder.

Quick recap

  • A skin is the look of a MediaWiki site.
  • Set the default with $wgDefaultSkin in LocalSettings.php.
  • Add new skins in the skins folder and load them with wfLoadSkin.
  • Back up LocalSettings.php before you edit it.