Font error & hardcoded file path when inspecting element…

This topic has 9 replies, 2 voices, and was last updated 2 years, 3 months ago ago by Max

  • Avatar: Maxime
    Max
    Participant
    February 16, 2022 at 19:10

    Hello

    Bad surprise tonight when getting things ready to a customer..

    As you can see on screenshot joined to this topic, file’s path is hardcoded in Firefox’s debug tools…

    You can find in private content all my active server configuration to run WordPress

    I don’t understand how this could be possible.

    What should I do ?

    Thanks

    Screenshot

    Please, contact administrator
    for this information.
    8 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 17, 2022 at 09:25

    Hello,

    Go to Theme Options > Typography > change any font > Publish, change font back, and Publish. Clear cache and check then.
    If this doesn’t help, provide us with URL of your site and temporary wp-admin access. Create an account via Dashboard (Users > Add new) with administrator role http://prntscr.com/s3rc9m > provide us with username and password via the Private Content area http://prntscr.com/s5mao7 You can use any email for it.

    Regards

    Avatar: Maxime
    Max
    Participant
    February 17, 2022 at 10:13

    Hello

    I did what you said, and it works for global typo while user is offline (such as in private browser)

    Maybe the header is the only part where there’s a problem

    You can find in private content area all informations you may need to understand the problem

    1 – Look at the homepage first
    -> You will see that all header’s typography that’s quite different from Roboto
    2 – Connect to wp-admin and go back to the home page
    -> You will see that we have my wanted typo : Roboto

    And you’ll may also see the hardcoded path in the first step, in case you’re using some development tools inside your browser, such as firefox has.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 17, 2022 at 13:35

    Hello,

    Thanks for the reply.
    Connect to your server using FTP and remove all folders inside wp-content/fonts/ folder. After that go to Theme Options > choose necessary fonts and save settings.

    Regards

    Avatar: Maxime
    Max
    Participant
    February 17, 2022 at 14:11

    Okay for this but can you tell me why font file path is hardcoded ?…

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 18, 2022 at 15:13

    Hello,

    Have you followed my previous suggestions? Please do it.
    With access you provided I can’t re-save Theme Options on the site – http://prntscr.com/U_nFnoI72vw5
    If after that you will have any other questions, describe the desired result in more detail, I will pass this topic to our technicians team

    Regards

    Avatar: Maxime
    Max
    Participant
    February 18, 2022 at 15:27

    https://prnt.sc/wo4xBICCIyuN You got every admin rights on the site right on private content

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 19, 2022 at 09:10

    To fix this – https://gyazo.com/87a667f97f74887ec35399251c85e77e Connect to your server using FTP and remove all folders inside wp-content/fonts/ folder. After that go to Theme Options > choose necessary fonts and save settings.
    If you do not have FTP access, contact your hosting provider.

    Regards

    Avatar: Maxime
    Max
    Participant
    February 19, 2022 at 10:05

    Seems working

    No more hardcoded path in debug tools

    Thanks

  • Viewing 9 results - 1 through 9 (of 9 total)

The issue related to '‘Font error & hardcoded file path when inspecting element…’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.