Mobile app version of vmapp.org
Login or Join
Pierce454

: Sure. All you need to do is use a hook, check if the current $wgTitle is the same as the main page title, and if it is, switch the Skin object to a different skin. The hook you should

@Pierce454

Sure. All you need to do is use a hook, check if the current $wgTitle is the same as the main page title, and if it is, switch the Skin object to a different skin.

The hook you should use for this is RequestContextCreateSkin.

The Skin object is passed by reference there, so you should have no trouble replacing it with a custom skin of your choice.

Good luck.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Pierce454

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme