Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #205918

    Kristin
    Participant

    Hi,

    I am trying to change my font to futura from my adobe typekit. I added this to the functions.php in my child theme…

    add_action('wp_head','custom_typekit_head');
    
    function custom_typekit_head() { ?>
    
    <script src="//use.typekit.net/nwm5yvv.js"></script>
    <script>try{Typekit.load();}catch(e){}</script>
    
    <?php } ?>

    And I added this in my styles.css

    h1, h2, h3, h4, h5, h6, .h1, .h2, .h3 {
       font-family: "Futura PT", sans-serif !important; 
    }
    p {
       font-family: "Futura PT", sans-serif !important;
    }

    Could you please help me figure out why it is not working? Thanks in advance!

    #205919

    Kristin
    Participant
    This reply has been marked as private.
    #206431

    Senthil
    Member

    Hi There,

    Thanks for writing in!
    I’m sorry to hear that you’re having this issue.

    It seems like the font link you’re adding is wrong.
    You’re adding the font from the below URL and it shows a not found error.

    http://use.typekit.net/nwm5yvv.js

    Please check the font URL again and add the correct one and it may fix your issue.

    Hope it helps, thanks!

    #207627

    Kristin
    Participant
    <script src="//use.typekit.net/nwm5yvv.js"></script>
    <script>try{Typekit.load();}catch(e){}</script>

    This is the code Adobe gives me. Thoughts?

    #207691

    Kristin
    Participant

    Nevermind– css comment wasn’t formatted correctly. Fixed!

    #207770

    Darshana
    Moderator

    Glad you were able to figure it out 🙂