Hi Gerry,
I did this the other day and this is what I did.
-
go to Font Squirrel and convert your font to webfonts. (http://www.fontsquirrel.com/tools/webfont-generator). Your font needs to be in ttf or otf format.
-
Upload your font, select optimal and tick agreement.
-
Download the.zip file with the font formats required & .css file
-
Visit your server via SFTP and go to the following directory: /wp-conent/themes/bb-theme-child
If you don’t have a child theme download from this site when you login to your account. If you are using another theme you can use something like (Child Theme Creator by Orbisius)
-
Create a folder inside bb-theme-child called “fonts”
-
Upload all web fonts from the zip into this folder (.eot/.svg/.ttf/.woff/.woff2)
-
Open the style.css file in bb-theme-child folder
-
Copy the CSS from the css file in the zip folder and paste into style.css
-
Add “fonts/ to the beginning of each font location (this is the fonts folder you created above)
-
Add the types of fonts you’d like to style (i.e. H1/H2/p etc…) Also add Arial, sans-serif; (this is you backup font in case a browser cannot render font)
-
Save changes & Upload style.css to server in child theme folder.
-
Your site should show the changes. If not, try clearing cache on your site or your browser cache.
Here is an example of the CSS. Hope this helps.
/*
Theme Name: Beaver Builder Child Theme
Theme URI: http://forum.wpbeaverbuilder.com
Version: 1.0
Description: An example child theme that can be used as a starting point for custom development.
Author: FastLine Media
Author URI: http://www.fastlinemedia.com
template: bb-theme
*/
/* Add your custom styles here… */
@font-face {
font-family: ‘simplificasimplifica’;
src: url(‘fonts/simplifica_typeface-webfont.eot’);
src: url(‘fonts/simplifica_typeface-webfont.eot?#iefix’) format(‘embedded-opentype’),
url(‘fonts/simplifica_typeface-webfont.woff2’) format(‘woff2’),
url(‘fonts/simplifica_typeface-webfont.woff’) format(‘woff’),
url(‘fonts/simplifica_typeface-webfont.ttf’) format(‘truetype’),
url(‘fonts/simplifica_typeface-webfont.svg#simplificasimplifica’) format(‘svg’);
font-weight: normal;
font-style: normal;
}
/* Headings */
h1,h2,h3,h4,h5,h6 {
font-family: ‘simplificasimplifica’, Arial, sans-serif;
}
/* Paragraph text */
p {
font-family: ‘simplificasimplifica’, Arial, sans-serif;
}
body {
font-family: ‘simplificasimplifica’, Arial, sans-serif !important;
}
.fl-page-nav .navbar-nav, .fl-page-nav .navbar-nav a {
font-family: ‘simplificasimplifica’, Arial, sans-serif;
}