-
AuthorPosts
-
December 19, 2015 at 2:36 am #555311
Hi, I’ve just purchased a webfront from myfonts.com after successfully using the trial version on my website. I’m not sure how to get it up and running.
To install the trial version, it was simple CSS, but it seems like to need to play with the header.php or functions.php files to get the full version working. Would this be right?
At the moment I’m using my Enfold Child theme, and I haven’t created a header.php file. I’m wondering, if I need to create this do I copy all the content in the original header.php file over from the main Enfold theme? Or just part of it? Sorry if that’s a silly question, I’m brand new to this.
Currently I have the following in my CSS but it doesn’t seem to know where to get the font from.
Thanks in advance for your help!
++
/*
Theme Name: Enfold Child
Theme URI: http://example.com/enfold/
Description: Enfold Child Theme
Author: Fleur Murphy
Author URI: http://www.fleurmurphy.com.au
Template: enfold
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: enfold-child
*/@import url(“//hello.myfonts.net/count/2ff0d8”);
@font-face {font-family: ‘Frontage-Bold’;src: url(‘webfonts/2FF0D8_1_0.eot’);src: url(‘webfonts/2FF0D8_1_0.eot?#iefix’) format(’embedded-opentype’),url(‘webfonts/2FF0D8_1_0.woff2’) format(‘woff2’),url(‘webfonts/2FF0D8_1_0.woff’) format(‘woff’),url(‘webfonts/2FF0D8_1_0.ttf’) format(‘truetype’);}
@font-face {font-family: ‘Frontage-3D’;src: url(‘webfonts/2FF0D8_2_0.eot’);src: url(‘webfonts/2FF0D8_2_0.eot?#iefix’) format(’embedded-opentype’),url(‘webfonts/2FF0D8_2_0.woff2’) format(‘woff2’),url(‘webfonts/2FF0D8_2_0.woff’) format(‘woff’),url(‘webfonts/2FF0D8_2_0.ttf’) format(‘truetype’);}
@font-face {font-family: ‘Frontage-Regular’;src: url(‘webfonts/2FF0D8_4_0.eot’);src: url(‘webfonts/2FF0D8_4_0.eot?#iefix’) format(’embedded-opentype’),url(‘webfonts/2FF0D8_4_0.woff2’) format(‘woff2’),url(‘webfonts/2FF0D8_4_0.woff’) format(‘woff’),url(‘webfonts/2FF0D8_4_0.ttf’) format(‘truetype’);}
December 20, 2015 at 6:47 am #555550Hi Fleur,
Is the code you posted the only code you have to include? If so you can try to paste in Quick CSS under Enfold–>General Styling.
Regards,
RikardApril 27, 2016 at 2:01 am #622636I managed to figure this one out myself in the end. MyFonts webfonts now come with comprehensive instructions on how to install webfonts on WordPress. If anyone gets stuck like I did, check out the ZIP file from MyFonts for full instructions. Worked a treat :)
-
AuthorPosts
- The topic ‘How do I install webfont from myfonts.com?’ is closed to new replies.