Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #425647

    I want to use custom fonts via a webscript from Fonts.com. They want the placement of a javascript placed between <head> and </head> then css code for the font family designation for the various font areas. I’m using a child theme, but I don’t see anything in the theme options section on where I can place the javascript like other themes provide. How do I install the script and where to I install.

    #425740

    Hey MtnStreamGroup!

    Thank you for using Enfold.

    Please post the required scripts in order to install the font. We would like to check it. You can add it directly in the header.php file if you want or use the wp_head hook. https://codex.wordpress.org/Plugin_API/Action_Reference/wp_head

    Cheers!
    Ismael

    #426112
    This reply has been marked as private.
    #426759

    Hey!

    Try adding this at the very end of your child theme functions.php file:

    function custom_add_to_head() {
    ?>
    <script type=”text/javascript” src=”http://fast.fonts.net/jsapi/7eae90d8-4c8b-4170-b63b-78887d1ce8f1.js”></script>
    <link type=”text/css” rel=”stylesheet” href=”http://fast.fonts.net/cssapi/7eae90d8-4c8b-4170-b63b-78887d1ce8f1.css”/>
    <?php
    }
    add_action('wp_head', 'custom_add_to_head');
    

    Then add this to Quick CSS to assign the fonts to the elements you want:

    h1,h2,h3,h4,h5,h6{
    	font-family:’FuturaW01-ExtraBoldCond_774896′;
    }
    body, p{
    	font-family:’Futura W01 Medium';
    }

    Cheers!
    Josue

    #429138
    This reply has been marked as private.
    #429471

    Hey!

    Hand me a FTP account in a private reply.

    Best regards,
    Josue

    #429801
    This reply has been marked as private.
    #429842

    Both, if possible.

    Regards,
    Josue

    #429886
    This reply has been marked as private.
    #429943
    #429967
    This reply has been marked as private.
    #429976

    Hey!

    Check it now, there was some issues with the quotes in the code, i’ve re-added it (functions.php and style.css) and you can see now that is working. I’ve also disabled WP Super Cache.

    Regards,
    Josue

    #429983
    This reply has been marked as private.
    #430003

    There needs to be a better and simpler way of installing and managing custom fonts. No different than the way you allow the use of Google fonts.

    #430022

    Feel free to request an idea here as a new feature.

    Best regards, 
    Josue

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.