Local customization offers great challenge and satisfaction to many editors, so we at Fandom encourage you to try your hand at it. But there are two important things to keep in mind as you do:
- Use the Theme designer first, before attempting any CSS customization - it'll likely make your life a lot easier.
The Community Central Technical Updates board contains periodic updates about changes that might affect your customizations. Another board, Designing Your Wiki, is a great place to get help from other users if needed.
On most wikis MediaWiki:Common.css is loaded first. The contents will be applied before MediaWiki:Wikia.css. For most communities this doesn't matter, but if you use both pages and
@import rules (like for importing custom fonts), then these rules must be added at the top of MediaWiki:Common.css to function.
With the exception of imported scripts from the Fandom Developers Wiki through ImportJS, you cannot add custom community JS until you ask Fandom to turn it on for you. After it's enabled, you can add freeform JS, rather than only imports. Whatever JS is there will be loaded for all visitors to your community, whether they're logged in or not. The main pages for adding custom JS are MediaWiki:Common.js and MediaWiki:Wikia.js.
Be aware of the following:
- For security reasons, edits to community JS must go through an approval process.
- Using ImportJS to import existing scripts bypasses the need for the review process.
- JS errors can break basic functionality in 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. Additionally, do not import JS from personal JS pages, or from insecure pages.
- As with the CSS pages, both Common.js and Wikia.js affect the whole wiki, but they may be consolidated in the future.
Changes you make to either CSS or JS are usually not immediately seen upon publication. This is because of a concept called "caching". If you're in the middle of a lengthy period of editing your CSS and JS, you may have to frequently bypass your cache to see your changes.
Also, Fandom's load order—the priority given to each of the various pages used to customize your wiki—is crucial for administrators to understand. A common reason that some customizations aren't seen is because a later-loading page effectively cancels a declaration made on an earlier-loading page.
- 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
- Help:Including additional CSS and JS – Importing CSS and JS onto your wiki