• Resolved ferns

    (@ferns)


    I’ve just updated to the newest version of the plugin and am having an odd error with the font path.

    In Gtmetrix testing, I can see that the plugin points to this path off the root /css/default/gdrts-icons.woff, which doesn’t exist. Tries to find it for a second, then cancels.

    If I put the fonts in /css/default/ and reload, it magically corrects itself and goes to the expected folder: /wp-content/plugins/gd-rating-system/css/fonts/default/gdrts-icons.woff.

    I have tried this several times, have hit ‘update’ on the db in the plugin, and it’s the same every time.

    The front end still displays correctly either way (though honestly that could be a cache thing, I’m not good with caching), but unless I have the files available in the root, it adds a couple of seconds to my load time.

    I’ve removed the files in the root for now so you can see what I mean in gtmetrix.

    Any ideas?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Milan Petrovic

    (@gdragon)

    Hi,

    CSS file loading fonts are in the ‘css/fonts’ folder, containing ‘default.css’ and ‘default’ folder where the fonts are. And, default.css references correctly that folder. And, it works fine on your website, icons are loaded and browsers don’t report any issues. Why the problem is with GTMetrix, I have no idea. And, I tested your website in GTMetrix and Pingdom, both work correctly – the font is in ‘css/fonts/default’.

    Also, the font CSS file is correctly cached on your website by whatever cache plugin you use, and fonts are loaded.

    Milan

    Thread Starter ferns

    (@ferns)

    Yeah, it’s weird: It does display correctly and if it wasn’t for the load time impact I wouldn’t care.

    No matter, I can just put the directory structure it’s looking for in the root since that does fix it for some weird reason.

    Appreciate you taking a look at it, thanks.

    Plugin Author Milan Petrovic

    (@gdragon)

    I have not seen any warnings or errors in the GTMetrix or Pingdom tests. I have seen the previous tests you did in GTMetrix, but that doesn’t happen now, and the only reason for that to happen is for you to have some other code (not my plugin) referencing wrongly the font files.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Font path error’ is closed to new replies.