MediaWiki has a unique way of making style sheet changes. There is a MediaWiki:Common.css page built into the program that stores global CSS changes. Instead of editing the .css files directly on the server, you can edit the MediaWiki:Common.css file through your MediaWiki admin. Below are the steps to add custom CSS code to your MediaWiki site.

How to change the CSS in MediaWiki

  1. Log into MediaWiki.
  2. Go to the MediaWili:Common.php url MediaWikiVisit the following url. Make sure you change your-mediawiki.com to your domain name.
    http://your-mediawiki.com/index.php?title=MediaWiki:Common.css

    The CSS page should load MediaWikiYou should see the page say, "/* CSS placed here will be applied to all skins */". If you do not see this, then you are on the wrong page. Make sure you typed it correctly.

  3. Click Edit MediaWikiClick Edit towards the top left of the page..
  4. Add the CSS cdoe MediaWikiOn the "Editing MediaWiki:Common.css", add the code you want to change the style for. In this example, we will change the font of the entire site to "Courier New".

    Click Save Page.


    View of CSS change MediaWikiThe CSS change will apply globally to the MediaWiki site. The image to the right shows the font change to "Courier New".

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Support Center:
Email Address
Optional, but our team may contact you for more information.
Like this Article?

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Write New!
Do you want to publish a tutorial to our support center?

News / Announcements

SSL Certficate Warnings
Updated 2014-04-14 11:34 am EST
Hits: 2163
Heartbleed 0-day OpenSSL security bug
Updated 2014-04-14 04:43 pm EST
Hits: 5550

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!