Topic on Extension talk:MobileFrontend

Using with different skins

4
Summary by Jdlrobson

You can use MobileFrontend with a different skin than Minerva.

Christharp (talkcontribs)

Hi I noticed the the default skin setting: does that mean mobile front can work with different skins? Foreground & some of the Bootstrap skins are already mobile friendly, but they don't have geo targeting abilities like MobileFront does, so would MobileFront work on them? Could Foreground be set as the default skin? And than have the other abilities of this extension, or does the extension need it's own skin?

thanks

Jdlrobson (talkcontribs)

Theoretically yes! :-) The skin used by the mobile site is SkinMinerva and is compatible with other skins.

You can enable another skin in LocalSettings.php using

$wgMFDefaultSkinClass = 'SkinBootstrap';

where SkinBootstrap is the class name of the skin you want to include.

You may find this loads a skin minus styles. This is easily fixable by filing a bug against the skin owner to allow their styles to run on mobile.

Not many people have expressed an interest in this, so it would be great to get some momentum and I'm happy to code review any patches you or others may want to submit to improve things in this area.

I wrote https://gerrit.wikimedia.org/r/#/c/261202/ which if merged (ping User:Florianschmidtwelzow) would allow you to use useskin=vector in the address bar and set a user preference 'mobileskin' - it's on my to do list to allow that to be surfaced in the Special:Preferences page...

Christharp (talkcontribs)

Thanks for the reply & even more so at the speed of the reply.

I'm setting up a new wiki right now and I hopefully be able to test the $wgMFDefaultSkinClass within a week or so. I'll report back after I do so.

Jdlrobson (talkcontribs)

To be clear I think we'll need some patches to the skins you want to use, but I don't see why we can't make those changes happen :-)