Adding new font
Hi, I would like to try some fonts which are not in the font bundle theme provides. What is the process? I would like to affect Body font and Heading Font. I have font called Frenchpress as OpenType file (filename Frenchpress_freefont.otf).
I suppose I have to upload it somewhere via ftp and then drop some code in the custom CSS field?
Thanks!
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
1Hi Wlacho
You are correct, but only having the single file type means that the font will not work on all browsers. To include it in the site please create a sub directory called fonts in your wp-content/themes directory and upload your font file there.
Then navigate to Appearance->Custom CSS and add the following
@font-face { font-family: FrenchPress; src: url("/wp-content/themes/fonts/Frenchpress_freefont.otf") format("opentype"); font-weight: normal; font-style: normal; } body, h1, h2, h3, h4, h5, h6 { font-family: FrenchPress; }Let us know how you get on
Magus
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.