Support » Fixing WordPress » Custom font trouble

  • WPuser51488

    (@wpuser51488)


    Hello, and thank you for reading me.

    I wanted to add a custom font for my wordpress menu. I bought it on MyFont and followed very precisely the tuto, but it’s not totally working.

    I uploaded my kit, then I added a reference to the head section, and finally used CSS to make it work. But it’s working only on the homepage.

    I mean, everything’s ok on the home, but if a go to another page, the font menu is changing to basic.

    I guess the problem is with the reference : <link rel=”stylesheet” type=”text/css” href=”MyFontsWebfontsKit.css”>. But it’s properly included in the <head> section, and working on home, so it should be working on every pages…

    The tuto says “Make sure that the reference appears on all HTML pages of your site.” I guess that’s the point, but I really don’t know what to do know (I tried to add this ref in so much files)…

    I guess it’s nothing, but I really need help on this one.

    Thank you very much in advance…

Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    The best thing you can do to increase your chances of receiving support is, to provide a link to the Webpage that has the issue.

    Thread Starter WPuser51488

    (@wpuser51488)

    Thank you very much for your answer Andrew.

    The thing is the website’s not online…

    Globally, I just need to know how to add a “link rel” on every wordpress page…

    Thanks in advance…

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Thread Starter WPuser51488

    (@wpuser51488)

    Thank you Andrew,
    I don’t think this is gonna help or I don’t know how…
    I need to know where I can access my html page to insert that tag :

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

    When I inspect the page with Google Chrome, it says : “Failed to load resource: the server responded with a status of 404 (Not Found)”

    It didn’t find “MyFontsWebfontsKit.css”…

    Any other idea ? 🙁

    Thank you again

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    To clarify, that resource I linked is a way for you to make your .css file appear on every page.

    So, which theme are you struggling with?

    Thread Starter WPuser51488

    (@wpuser51488)

    Enfold

    Please find below the code I’m actually using. I don’t know at all how to adapt it following the link you sent me…

    Thanks

    .EngraversGothicBT-Regular {
    font-family: EngraversGothicBT-Regular;
    font-weight: normal;
    font-style: normal;
    }

    body, h1, h2 {
    font-family: EngraversGothicBT-Regular;
    font-weight: normal;
    font-style: normal;
    }

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

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Maybe it’s easier if you use a font plugin https://wordpress.org/plugins/use-any-font/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Custom font trouble’ is closed to new replies.