I’m trying to use a trial version of a font from myfonts.com. They have given me the following instructions and code. I’m not sure where to put this code. I am using an enfold-child theme and the only two files I have set up within this are my style.css and functions.php files.
+++
Paste this code into the <head> of your HTML to embed these fonts.
You are only permitted use of these webfonts for testing purposes in non-production environments for 30 days. You can apply them in your css using:
font-family: ‘Frontage Bold’
font-family: ‘Frontage’
+++
<script type=”text/javascript”>
(function() {
var path = ‘//easy.myfonts.net/v2/js?sid=222386(font-family=Frontage+Bold)&sid=222389(font-family=Frontage)&key=ha27hZg2B2’,
protocol = (‘https:’ == document.location.protocol ? ‘https:’ : ‘http:’),
trial = document.createElement(‘script’);
trial.type = ‘text/javascript’;
trial.async = true;
trial.src = protocol + path;
var head = document.getElementsByTagName(“head”)[0];
head.appendChild(trial);
})();
</script>
Hi Fleur!
Please add your code to Google Analytics field in Enfold theme options
Cheers!
Yigit
Haha no wonder I didn’t know where to put it :) Thanks Yigit.