Tagged: font
-
AuthorPosts
-
March 4, 2015 at 10:59 am #405682
Hi,
I’ve been reading some threads about adding custom fonts to the Enfold theme. My custom font works perfectly on my computer on different browsers (Safari, Chrome) and on another two devices. The problem is that when trying to visualize the website from Ipad, other computers and tables, the font wont appear.
This is what I place on my enfold-child .css:
@font-face {
font-family: ‘ClearSans-Light’;
src: url(‘http://mywebsite/wp-content/themes/enfold/css/fonts/ClearSans-Light.eot’); /* IE9 Compat Modes */
src: url(‘http://mywebsite/wp-content/themes/enfold/css/fonts/ClearSans-Light.eot?#iefix’) format(’embedded-opentype’), /* IE6-IE8 */
url(‘http://mywebsite/wp-content/themes/enfold/css/fonts/ClearSans-Light.woff2’) format(‘woff2’), /* Super Modern Browsers */
url(‘http://mywebsite/wp-content/themes/enfold/css/fonts/ClearSans-Light.woff’) format(‘woff’), /* Pretty Modern Browsers */
url(‘http://mywebsite/wp-content/themes/enfold/css/fonts/ClearSans-Light.ttf’) format(‘truetype’), /* Safari, Android, iOS */
url(‘http://mywebsite/wp-content/themes/enfold/css/fonts/ClearSans-Light.svg#ClearSans-Light’) format(‘svg’); /* Legacy iOS */
}h1, h2, h3, h4, h5, h6 {
font-family: ‘ClearSans-Light’, sans-serif !important;
text-transform: uppercase;
}body {
font-family: ‘ClearSans-Light’, sans-serif !important;
}I tried deleting the cache, changing the fonts files to another folder in the server and still cannot get the font to display everywhere the same.
I don’t get what I am doing wrong, but I am also no expert after all ;).
Thank you in advance for your help!.March 5, 2015 at 6:00 pm #406558Hi eriatarka!
It looked the same to me on all browsers. It doesn’t look like the actual font is loading though. It looks like you have a typo in the domain name (forgot the .de extension). Double check that there are no typos in your CSS and that the domain name is correct.
Also try doing this if you do not see any typos, http://kriesi.at/documentation/enfold/enable-cors/.
Regards,
ElliottMarch 13, 2015 at 7:51 pm #411250Sorry for the late coming back and thank you for your support. I actually just forgot the .de at the end -my bad!-
I also tried using the Use Any Font Plugin which actually worked pretty fine.Thanks again!
March 16, 2015 at 1:42 am #411779Hi!
glad Elliott could help you. Let us know when you have any questions in the future.
Cheers!
Andy -
AuthorPosts
- The topic ‘Adding Custom Fonts – won't work on all devices’ is closed to new replies.