Help:Global CSS and JS
Talk0
57,090pages on
this wiki
this wiki
This text is stored on Wikia Help. Suggest changes here.
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 up
Edit
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 info
Edit
- The files are loaded for every skin.
- If you want to code JavaScript only for a specific skin, make use of the
skinvariable 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.
Retrieved from "http://community.wikia.com/wiki/Help:Global_CSS_and_JS"