Using @font-face in wordpress.org
I’ve searched through Google and WP.org forums a fair amount but can’t seem to come to a conclusive answer (mainly because everything I have turned up is ~12months old) and am now turning to you:
Does WordPress allow use of @font-face to embed non-traditional fonts into webpages?
I used the fontsquirrel.com generator, downloaded the fontkit, placed the font files in my root directory, added the declaration code into my css and then used the new fonts in the html as I would with Helvetica, Arial, etc but it isn’t working.
I found some evidence online that suggested that since WP is dynamic, and not static, it will not support @font-face. At this point, I would like to know if the error is on my end or if this is a worthless endeavor because of WP limitations.
Any help would be much appreciated!
I don’t see how this has anything to do with wordpress. Wordress (PHP) is server-side and CSS is client-side.
http://perishablepress.com/press/2010/04/14/visual-walkthrough-font-face-css/ uses both wordpress and @font-face.
It’s a CSS feature, there are no CSS restrictions in WordPress that would prevent CSS you can use in a regular HTML file to not work inside the WordPress environment.
I’ve also recently worked on a users theme that implements font-faces(i’d not used it myself before then), so i can tell you for sure it most certainly does work..
This is also a pretty good write-up, if you’ve not seen it already..
Alright, this confirms that the error is on my end. Thanks guys.
- The topic ‘Using @font-face in wordpress.org’ is closed to new replies.