Wikia

Community Central

Help:Global CSS and JS

Talk1
79,355pages on
this wiki

You can set global CSS and JavaScript on Wikia by editing special subpages of your user page. Any changes you make will take effect on any Wikia wikis you visit while logged in.

Contents

What you can do with these pages?Edit

These pages give you the ability to use JavaScript and CSS to customise your viewing and editing experience on Wikia wikis. To get an idea of some scripts others have written that you might find useful or would like to try, take a look at the list of JavaScript Enhancements on the Developer's Wiki.

How to set it upEdit

On Community Central, 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 will affect all Wikia wikis you visit.

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.

See alsoEdit

Photos

Add a Photo
12,104photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki