Help:Community CSS and JS
this wiki
Contents
[show]Community CSS and JavaScript allows local administrators to customize how Wikia looks and behaves for anyone visiting their community, beyond the abilities provided by the Theme Designer.
If you plan on doing this, please be aware of Wikia's policy on allowed customizations and the Terms of Use. Note that CSS and JS customizations are not generally applied to the mobile skin.
CSS
Edit

Editing a dark-themed community's CSS
To customize your community's CSS, simply edit MediaWiki:Wikia.css. This will send you to Special:CSS, allowing you to tweak your community's design. You can also access this page from the Admin Dashboard.
Each week we release notes on upcoming changes that might affect your community's customizations: Technical Update blog posts.
The Community Central Designing Your Wikia forum board is a great place to get help from other users, if needed. See also this webinar to learn more about custom community CSS.
Note: if you want to target the Monobook skin, edit MediaWiki:Monobook.css.
Common.css
Edit
- On all wikias created after July 2014
- MediaWiki:Common.css is loaded for the main Wikia skin and Monobook. The contents will applied before MediaWiki:Wikia.css and MediaWiki:Monobook.css. For most communities this doesn't matter, but if you use
@import
rules (like for importing custom fonts), it is best they are added to the top of MediaWiki:Common.css.
- On most wikias created before July 2014
- MediaWiki:Common.css is loaded for the Monobook skin but not the main Wikia skin. If you want to use MediaWiki:Common.css to create rules for both the Wikia and Monobook skins, ask Wikia Staff to enable this. If you do so, make sure to clean up any old CSS in MediaWiki:Common.css beforehand, otherwise it may cause unexpected effects.
JavaScript
Edit
To customize your community's JS, simply edit MediaWiki:Common.js. This code will be loaded for all visitors to your community.
Notes:
- Editing of JS pages is temporarily disabled while Wikia performs a wide-ranging security review - however, a new process for approving community JS edits is currently being tested: see Help:JavaScript review process. Check Wikia's Technical Update blog posts for updates.
- JS errors can break basic functionality on your community - please be careful to avoid introducing errors.
- Please do not include JS that you do not understand, nor import from sources that you do not fully trust.
- Do not import JS from personal JS pages, or from unsecure pages.
- If you want to target a specific skin, edit MediaWiki:Wikia.js for the default skin, and MediaWiki:Monobook.js for the Monobook skin.
See also
Edit
- Help:CSS best practices - some best practice suggestions for CSS customization
- Help:Personal CSS and JS - creating customizations that only affect you
- Help:Advanced CSS and JS - more info for those delving further into the world of CSS and JS editing
- Help:CSS and JS customization - the hub page for all CSS and JS details
Further help and feedback
Edit
- Browse and search other help pages at Help:Contents
- Check Help:Wikia Community Central for sources of further help and support
- Check Help:Contacting Wikia for how to report any errors or unclear steps in this article