Manual:Skin configuration

This page contains comprehensive information for administrators on how to configure skins on a wiki. Please refer to Help:Skins for general skin information and Manual:Skinning for developer information on creating new skins.

Set a Default Skin for a Wiki
A default skin can be set for new users of a wiki by setting the variable $wgDefaultSkin in LocalSettings.php to the lowercase skin name specified in the skin file. For example:

$wgDefaultSkin = 'vector';

Users can still change their skin later by going to their preferences page. To change all existing users' skin settings, use the userOptions.php maintenance script. The syntax to use on the command line would be:

$ php userOptions.php skin --old --new

Example:

$ php userOptions.php skin --old "monobook" --new "vector"

Suppression of Skins
The administrator can limit the skin choices that are offered site-wide in user's preferences by listing skin(s) to suppress in the $wgSkipSkins array. To do this, put something like this in LocalSettings.php: to LocalSettings.php. This will remove the "Skin" tab from preferences and the possibility to use the useskin parameter in the U foreach ($wgValidSkinNames as $skinkey => $skinname ) { if ( in_array( $skinkey, $wgSkipSkins ) ) { continue; }   $checked = $skinkey == $this->mSkin ? ' checked="checked"' : ''; $sn =
 * 1) Only show members of $wgValidSkinNames rather than
 * 2) $skinNames (skins is all skin names from Language.php)