Latest topics
» help me about Latest topic
by Haytam Today at 12:47

» Display a preview of the user profile on hover
by Haytam Today at 12:39

» Starred Forums
by Ange Tuteur Today at 12:27

» Chit Chat Thread
by Ange Tuteur Today at 12:11

» Colored Bar Navigation
by Valoish Yesterday at 23:03

» FM Themes
by SLGray Thu 25 May 2017, 22:39

» User - Made Creations
by SLGray Thu 25 May 2017, 22:37

» Classified Ads
by SLGray Thu 25 May 2017, 19:23

» Categories as tabs on Edge!
by STBW Thu 25 May 2017, 04:11

» [GAME] What are you thinking right now?
by Ange Tuteur Wed 24 May 2017, 15:10

» [GAME] Countdown from 200,000
by Ange Tuteur Wed 24 May 2017, 15:09

» [GAME] Post a random picture
by Ange Tuteur Wed 24 May 2017, 15:08

» [GAME] What are you doing right now?
by Ange Tuteur Wed 24 May 2017, 15:06

» [GAME] Count to 30 - Ange Edition
by Ange Tuteur Wed 24 May 2017, 15:05

» [GAME] Count to One Million!
by Ange Tuteur Wed 24 May 2017, 15:05

Recent Tutorials
Who is online?
In total there are 8 users online :: 2 Registered, 0 Hidden and 6 Guests :: 2 Bots

Haytam, Luffy

[ 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

avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4544
Points : 9370
Reputation : 2294
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave 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