Topic on Skin talk:Refreshed

Skin for only mobile view

4
93.215.27.220 (talkcontribs)

i want to use this Skin only as a mobile skin, so that i can still use for Desktop purpose the Standard Vector Skin, is this possible and how?

2600:1000:B07F:2177:8DF3:66FE:86EB:59CC (talkcontribs)

No this is not possible

68.185.215.47 (talkcontribs)

Yes this is possible. You need to install Extension:MobileDetect and add this code to your LocalSettings.php:

#######Mobile Detection -- change skin for mobile devices! and mobile only / desktop only views#########

require_once "$IP/extensions/MobileDetect/MobileDetect.php";

// Mobile skin

require_once "$IP/extensions/MobileDetect/MobileDetect.php";

$mobile = mobiledetect();

if ( $mobile === false ) $wgDefaultSkin = "vector"; # If not Mobile

if ( $mobile === true ) $wgDefaultSkin = "refreshed";

68.185.215.47 (talkcontribs)

Before this code, you of course need to load the Refreshed skin and have it installed in your /skins folder.

Reply to "Skin for only mobile view"