Community Central

Admin Forum:Change font for the whole wiki?

97,175pages on
this wiki

This Forum has been archived

Forums: Admin Central Index Technical Help Change font for the whole wiki?
Wikia's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 643 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.

Is there a way to change the font-family for the whole wiki? (Content pages, title, that kind of thing). Please help!

MarvelRiddle 04:59, May 27, 2012 (UTC)

Yes. You can use css to do that. I don't think this breaches the TOUs. Add this to your wiki's MediaWiki:Common.css page:
body.mediawiki {
 font-family: MS Gothic;
Just be careful. Note that serif fonts are hard to read on computers. I'd pick a sans-serif font. :) STARFLEET ACADEMY 05:33, May 27, 2012 (UTC)
Scratch that. This is much better. It doesn't change the footer of the page. This code only changes the article text:
.WikiaMainContent {
 font-family: MS Gothic;
Sorry about that, but I don't want to get you into trouble! :P STARFLEET ACADEMY 05:39, May 27, 2012 (UTC)
Sigh. That previous code affects the editor. Which wouldn't be liked by Wikia. How about this:
.WikiaPageHeader > h1 {
 font-family: Times New Roman; /* This changes the header on every article */
.WikiaArticle {
 font-family: Century Gothic; /* This changes the text in the content space only */
I'll get it right someday. :P STARFLEET ACADEMY 05:57, May 27, 2012 (UTC)

Alternatively, the following will change font for absolutely everything (don't believe there's anything to worry about TOU-wise):

body, .category-gallery-item .snippet .text, a.wikia-button, .wikia-single-button a, .wikia-menu-button, input, .button, button, select, ul.tabbernav {font-family:sans-serif !important;}

Of course, you can substitute "sans-serif" for the font of your choice. The 888th Avatar (talk) 12:07, May 27, 2012 (UTC)

@MarvelRiddle: In that case I'd go with triple 8's idea.
@888: I added a scroller to that code box. It is a very long code. Scratch that; I'm going insane. :) STARFLEET ACADEMY 03:09, May 28, 2012 (UTC)

Around Wikia's network

Random Wiki