Black Friday Sale! Get up to $30 off GP Premium! Learn more ➝

[Resolved] installing webfont

Home Forums Support [Resolved] installing webfont

Home Forums Support installing webfont

  • This topic has 3 replies, 2 voices, and was last updated 5 years ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #242844
    Marjon Tas

    I am having trouble installing a paid webfont in generatepress. (by MyFonts).
    I installed the font and the CSS file from the MyFontsWebfontsKit in the root of the site.

    Then I put the following line in GP Hooks (wp_head)
    <link rel=”stylesheet” type=”text/css” href=”MyFontsWebfontsKit.css”>

    And I put this line in the custom css plugin:
    body { font-family: FFMarselisWeb; }

    The font shows only on the homepage. And not on the rest of the site. What did I do wrong? Please help, and save my day πŸ™‚ I did try al kinds of things, but nothing works until now.

    With kind regards,
    Marjon

    #242991
    Tom
    Lead Developer
    Lead Developer

    Hi Marjon,

    The problem is this line:

    <link rel="stylesheet" type="text/css" href="MyFontsWebfontsKit.css">

    You need to put your full URL there:

    <link rel="stylesheet" type="text/css" href="http://yourwebsite.com/MyFontsWebfontsKit.css">

    #243150
    Tom
    Lead Developer
    Lead Developer

    You’re welcome! Glad I could help πŸ™‚

    #243137
    Marjon Tas

    Hi Tom,
    It works like a charm! Thanks so much for your help!! Big releave it works now. That saved my day indeed. πŸ™‚

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