-
AuthorPosts
-
July 29, 2014 at 12:47 pm #297266
Hi again
Ive looked around your forums and haven’t managed to resolve this, the last of my issues….
I want a custom font “Aller” site wide and have struggled to sort it out.I have run it through font squirrel, uploaded the fonts into a folder called ‘fonts’ and added this to the custom.css
@font-face {
font-family: ‘allerregular’;
src: url(‘../fonts/aller_rg-webfont.eot’);
src: url(‘../fonts/aller_rg-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘../fonts/aller_rg-webfont.woff’) format(‘woff’),
url(‘../fonts/aller_rg-webfont.ttf’) format(‘truetype’),
url(‘../fonts/aller_rg-webfont.svg#allerregular’) format(‘svg’);
font-weight: normal;
font-style: normal;}
Ive then added this to the quick.css
body {
font-family: ‘allerregular’, Fallback, sans-serif;
}Am I missing something? I want the “Aller’ font to be the main font, for everything
Thanks again in advance
ArranJuly 30, 2014 at 3:03 am #297526Hey Arran!
Please add following code to Quick CSS as well
body { font-family: allerregular, sans-serif; }Regards,
YigitJuly 30, 2014 at 9:08 am #297604No luck with that addition, any other suggestion?
cheers
July 30, 2014 at 12:42 pm #297674Hey!
Please try adding !important rule as following
body { font-family: allerregular, sans-serif !important; }Cheers!
YigitAugust 3, 2014 at 9:02 am #299304Thanks Yigit
The worked, but only on the body text and the nav. How do I target the H tags?
Thanks again
August 3, 2014 at 2:56 pm #299336Hey!
Please add following code to Quick CSS as well
h1, h2, h3, h4, h5, h6 { font-family: allerregular, sans-serif !important; }Cheers!
YigitAugust 4, 2014 at 10:56 am #299572Perfect… Thanks again
August 4, 2014 at 10:59 am #299575 -
AuthorPosts
- The topic ‘@font-face’ is closed to new replies.
