Using webfonts via fontsquirrel
-
I am attempting to change the heading font from Arvo to another font via @font-face. I received permission from the author to use the font. I uploaded the font to the webfont generator on fontsquirrel.com and downloaded and then extracted the files from the zip folder. I uploaded the .eot, .svg, .ttf, .woff files to …/themes/quark/fonts. The kit also contains a stylesheet.css file which I uploaded to the …themes/quark folder that contains the other css and php files. The stylesheet has the following code:
@font-face { font-family: 'always__forever'; src: url('always_forever-webfont.eot'); src: url('always_forever-webfont.eot?#iefix') format('embedded-opentype'), url('always_forever-webfont.woff') format('woff'), url('always_forever-webfont.ttf') format('truetype'), url('always_forever-webfont.svg#always__foreverregular') format('svg'); font-weight: normal; font-style: normal; }
The directions then say to place:
<link rel="stylesheet" href="stylesheet.css" type="text/css" charset="utf-8" />
in my html. It doesn’t specify where in the html, I figured in the <head> </head> tags(?). I placed it in the header.php file in between <head> </head>.Then I added the following code to my child theme:
h1, h2, h3, h4, h5, h6 { font-family: 'always__forever', Arial, serif; font-style: normal; font-weight: 400; color: #333; margin-top: 0; }
Of course this isn’t working and I have spent the last two days reading about webfonts and I still can’t figure out what I am doing wrong.
The code I placed in my child theme does cause the headings to go to arial so, I know that is working.I’d appreciate any help, thank you.
(Here is the site I am working on: liftmeupbabywearing.org It is really rough right now and a big work in progress)
- The topic ‘Using webfonts via fontsquirrel’ is closed to new replies.