Latest topics
» Topic'It
by SLGray Yesterday at 15:52

» FM Themes
by SLGray Yesterday at 15:51

» User - Made Creations
by SLGray Yesterday at 15:50

» Topic'It
by SLGray Yesterday at 15:46

» IconSkouliki
by skouliki Sun 17 Sep 2017, 11:05

» Awards
by Mr_Grande Sun 17 Sep 2017, 08:52

» Modify Category Tabs lead to a desired position and auto scroll click
by djblah Fri 15 Sep 2017, 14:56

» Display a preview of the user profile on hover
by Eiki Thu 14 Sep 2017, 02:38

» [GAME] Count to 30 - Ange Edition
by SLGray Mon 11 Sep 2017, 14:23

» Rank CSS
by Mr_Grande Fri 08 Sep 2017, 09:24

» make the topic a color
by Ultimas Wed 06 Sep 2017, 19:44

» Chit Chat Thread
by Valoish Sun 03 Sep 2017, 23:20

» The like/thumbs up or down feature
by Dr.kran Sun 03 Sep 2017, 19:21

» My text boxes are glitched, can you help with this type of problem?
by Wolfuryo Sun 03 Sep 2017, 17:08

» i need to add css improvement
by Wolfuryo Sat 02 Sep 2017, 12:12

Recent Tutorials
Top posting users this month
Who is online?
In total there are 9 users online :: 0 Registered, 0 Hidden and 9 Guests

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

avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4684
Points : 9729
Reputation : 2331
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