Wikia

Community Central

WatchlistRandom pageRecent changes

Help:Global CSS and JS

Talk0
57,090pages on
this wiki

You can set global CSS and JS on Wikia by editing special pages. Any changes you make will be loaded on any Wikia wikis you log into.

How to set it upEdit

On Central Wikia, you can edit Special:Mypage/global.css and Special:Mypage/global.js.

These two pages act similar to site-specific personal CSS and JS files, but every Wikia references them.

Technical infoEdit

  • The files are loaded for every skin.
  • If you want to code JavaScript only for a specific skin, make use of the skin variable in JavaScript, where every wiki stores its skin name.
  • The CSS is loaded after the main MediaWiki CSS, but before the site specific CSS, so if you want to overwrite a wiki's custom CSS, make use of the !important property.

Latest Photos

Add a Photo
5,783photos on this wiki
See more >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki