Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #551149

    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>

    #551159

    Hi Fleur!

    Please add your code to Google Analytics field in Enfold theme options

    Cheers!
    Yigit

    #551162

    Haha no wonder I didn’t know where to put it :) Thanks Yigit.

    #551169

    Hi!

    You can add the codes that you need to display in <head> section in Google Analytics field, for future reference :)
    You are welcome. Let us know if you have any other questions or issues and have a great weekend!

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Install trial version of webfont’ is closed to new replies.