Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1420228

    redsnapdragons
    Participant

    Hello

    I bought a webfont from Typography.com called Whitney. I want to use it on x theme but it’s not showing up. I created a child theme, and inserted this code in the style.css of the child theme

    <link rel=”stylesheet” type=”text/css” href=”https://cloud.typography.com/7417576/6093972/css/fonts.css” />

    Then I tested it out on the header text on the homepage of my site

    http://www.sandbox.helpsocial.com/

    I used this code to set the font family

    font-family: “Whitney SSm A”, “Whitney SSm B”;font-style: normal;font-weight: 400;

    Which was copied from the typography site. The font is not showing up though. It should look like this https://www.twilio.com/

    #1420229

    redsnapdragons
    Participant
    This reply has been marked as private.
    #1420511

    Christian
    Moderator

    Hey there,

    This code is HTML

    <link rel=”stylesheet” type=”text/css” href=”https://cloud.typography.com/7417576/6093972/css/fonts.css” />

    so it should not be placed in CSS.

    Please contact your font provider to give you the code to insert in CSS or use @import. See https://developer.mozilla.org/en/docs/Web/CSS/@import

    You can also enqueue your font. See http://www.wpbeginner.com/wp-tutorials/how-to-properly-add-javascripts-and-styles-in-wordpress/

    Thanks.