MyBB Community Forums

Full Version: Two google fonts in header not showing on forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello to all MyBB community members,

I recently installed MyBB a skin and now i wanted to fine tune the fonts used in it
maybe I screwed something up  Huh


Followed a tutorial I saw here and added the link from google in the header


<link href="https://fonts.googleapis.com/css?family=Montserrat|Open+Sans" rel="stylesheet">
 
Before I did this I was already working on the global CSS customise sizes and fonts
But now Open Sans vanished from the forum, it only shows Montserrat
Should I add something in CSS?
Here's the global CSS if you can look at it and tell me where the error is
Also how can I choose the weight - Open Sans Regular 
before it was showing only the thin?!
Now Montserrat invaded the forum
Can someone help me
Thx
Sebas
I'd suggest you to use import instead of header linking.
Open your global.css and add at the very beginning:

@import url('https://fonts.googleapis.com/css?family=Montserrat|Open+Sans');

This will also solve your loading sequencing.

By default this will load Open Sans Regular only (weight 400), but if you want to use light alongwith then use this code:

@import url('https://fonts.googleapis.com/css?family=Montserrat|Open+Sans:300,400');

Now if you need the light version use weight 300, for regular use weight 400. Like this:

p {
font-family: 'Open Sans', sans-serif;
font-weight: 300; /* Use 400 for regular */
}