Hi,
I have added a font to /wp-content/themes/enfold/css/fonts folder via ftp (DidotBold.ttf)
and called it with css in our child theme stylesheet
@font-face {
font-family: ‘DidotBold’;
src: https://lewinandreilly.com.au/wp-content/themes/enfold/css/fonts/didotbold.ttf(‘DidotBold.ttf’) format(‘ttf’);
font-weight: normal;
font-style: normal;
}
and added this to quick css
h1
{
font-family: ‘DidotBold’, Fallback, quattrocento;
}
but can’t get Didot to work.
Can you assist?
Hi lewinandreilly,
The URL looks a bit funny, you can verify that it’s correct by going to it with your browser. Try this instead:
https://lewinandreilly.com.au/wp-content/themes/enfold/css/fonts/didotbold.ttf
Thanks,
Rikard
Hi,
I have tried copying and editing similar requests from this forum but have probably gotten something wrong. Can you let me know exactly how to achieve this. We want to purchase and install a premium font, but want to make sure we will be able to install the font via ftp before spending $400 on fonts.
Thanks
Hey!
Please see – http://justcreative.com/2013/01/22/how-to-use-custom-fonts-with-font-face-on-wordpress/
Cheers!
Yigit