Latest topics
» FM Themes
by SLGray Today at 16:48

» User - Made Creations
by SLGray Today at 16:48

» The Football Forums
by Mati Today at 15:22

» [BUG] Avatar doesn't resize when reading the profile
by Samantha NL Today at 12:33

» Search Bar Options
by Samantha NL Today at 11:38

» Chit Chat Thread
by Jazeon Today at 05:42

» Christmas logo
by Teo! Today at 03:56

» SyncEditor
by keko_ferkeko Today at 00:31

» Private message bg color
by Mr.Alam Yesterday at 22:54

» Multi-step Login Form
by Samantha NL Yesterday at 12:54

» Member of the Month
by Samantha NL Yesterday at 12:38

» Forumactif Edge - Dutch Translation
by Samantha NL Yesterday at 10:49

» Widget : Staff Online
by Samantha NL Yesterday at 10:39

» Questions about styling the Main Search Box
by Samantha NL Yesterday at 10:24

» Found a typo in your default Edge CSS
by Samantha NL Yesterday at 03:07

Recent Tutorials
Who is online?
In total there are 8 users online :: 0 Registered, 0 Hidden and 8 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

Change The Overall Font Family of Your Forum

View previous topic View next topic Go down

Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4091
Points : 8395
Reputation : 2010
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Fri 16 Aug 2013, 14:04

The following tutorial will help you with changing the overall font family of your forum. To achieve this we will be making use of the wildcard* selector and !important to override basic styles if desired. Please read on if you're interested in changing the font family of your forum.

Selecting Font Family
Before getting anywhere we should first select multiple fonts to be used on our forum. The reason we have to choose multiple fonts is because we need a fallback for browsers/operating systems to ensure compatibility. If the browser does not support the first font in line it will try the next one until it finds a font that it can use, its best to end with a generic font family to make sure that your forum is always readable. I recommend choosing a set of fonts from CSS Font Stack to make it easier on yourself if you're not experienced with CSS.

Setting Forum Font Family
Now that we have an Idea of what font family we will be using for our forum we will begin setting up our CSS code. The CSS below is an example of what your font family code should look like.
Code:
*{
font-family: Papyrus, fantasy, sans-serif;
}

If Papyrus is not available the browser will fallback on fantasy and if fantasy is not available the browser will fallback on sans-serif. The above code will only modify elements without basic font-family styles, if you want to give your code more weight so it can override basic styles you will place !important at the end of your property value like the code I've setup below.
Code:
*{
font-family: Papyrus, fantasy, sans-serif !important;
}

I do not recommend using !important if you want to use other fonts on your forum. Anyhow once you have your font family code setup navigate your way to..
Admin Panel > Display > Pictures and Colors > Colors > CSS stylesheet

Then paste your font family code in the stylesheet and hit submit. If you have done the recent steps correctly then most of your forums font family should be changed, or if you used !important your entire forum font family should be changed. I do not recommend using the wildcard selector at all for everything you do in CSS however, its perfect for quickly changing the font of your forum without using multiple selectors.

Thank you for reading and have fun tinkering with the font family of your forum. ^^


Tutorial written by Ange Tuteur

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum