Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #722127

    Hi, I sometimes add Google fonts to the Enfold theme by pasting them into the Google Analytics Tracking Code area in the them options (see screenshot: https://postimg.org/image/687zvvc8d/). I was wondering – if I want to inlcude the actual Google Analytics code AND some custom fonts, can I just paste both of them in the box?

    #723216

    Just checking in, haven’t heard back yet. Thanks!

    #723339

    Hi,

    We apologize for the late response. It’s not possible if you used the way you put it in the screenshot, google analytics wont work by doing that, but it should work if you replace the analytics id with the whole js code of google analytics, but I recommend just putting the analytics code there and as for your custom fonts you may want to put it in functions.php by adding this code at the bottom:

    
    function add_custom_font(){
    ?>
    <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
    <?php 
    }
    add_action('wp_head', 'add_custom_font');
    

    Just replace opens sans css with your custom font. Hope this helps.

    Best regards,
    Nikko

    • This reply was modified 8 years ago by Nikko.
    #723355

    Thanks!

    #723362

    Hey!

    Happy we could help.
    Please remember to create a new ticket, if we can do anything else for you.

    Thanks a lot

    Best regards,
    Basilis

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