MyBB Community Forums

Full Version: How to change the default font (of everything)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, 

I am trying to change the default font on my forums. I tried to search these forums, but to no avail...

I assume I need to edit parts of global.css for the theme I am using? I am not sure which sections are responsible for which parts of the forums. Can someone explain or point me in the right direction to find the information please?

I don't mind doing some reading and educating myself, but I don't really know where to start.

Thanks!
ACP >> Themes >> Your Theme >> global.css

and change the font family from body and container...

body {
//some codes//
	font-family: Tahoma, Verdana, Arial, Sans-Serif;
//some codes//
}

#container {
//some codes//
	font-family: Tahoma, Verdana, Arial, Sans-Serif;
//some codes//
}


PS: some custom themes might use a different css sheet to get the font family.. in such cases, providing your forum url will be useful...
Thanks for your reply. My forums' URL is http://thewingedhussars.com/index.php.

I'll have a look at global.css now.

::EDIT::

Just a quick question - if I want to use a custom font, where do I upload it for it to be picked up? I'm guessing that the font family name has to match the font name in that case?
To override all fonts "everything" on the theme itself you can use this:
* { font-family: Arial !important; }

To use font's of your own you have to upload the font, then call the font.

Example:
@font-face{ 
    font-family: mycool_fontname;
    src: local(mycool_fontname), url('PATH TO MY COOL FONT') format('opentype');
}

Then you can start using using your custom font like this:
font-family: mycool_fontname;
Thanks, that's very helpful!