• Resolved Efs

    (@stevendigital)


    Hello,

    Premium theme: Kallyas theme
    I am using 3 plugins for optimization:
    1) Smush pro for image optimization and CDN
    2) WP-Rocket for caching etc
    3) Asset CleanUp: Page Speed Booster
    4) Also use cloudflare (Free plan) for the rest of the static assets.
    (No conflicts between them.)

    I also want to use OMFG to serve google fonts locally.
    The problem is that when i install the plugin and try to get the list of the fonts that appear in my theme, there are no fonts that appear in the list at all.

    I have purged all the caches, i have even desabled al the plugins and purged all the caches, but still the list with the fonts, does not appear at all if i click the “Save and optimize” button.

    The method of optimization is set to manual.

    how do you advice, in order to debug the issue?

    Best Regards

    • This topic was modified 4 years, 1 month ago by Efs.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Efs

    (@stevendigital)

    Is there any follow up here?

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi!

    I apologize for the late reply.

    Could you share your URL with me? If you don’t want to share it here, you can send it to me using this contact form.

    I’d like to see if your theme enqueues fonts the proper way.

    Thread Starter Efs

    (@stevendigital)

    Hello,

    I Have contacted you via Email. If the problem is debugged I will post the solution here in order for others to know, if they may experience the same problem.

    Best Regards

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    HI @stevendigital,

    It’s what I suspected. The theme doesn’t enqueue the styles in a proper way, which is outside OMGF’s range. Instead, it loads them through font-face statements using an inline <style> block.

    The free version of OMGF only detects fonts which are properly enqueued using wp_enqueue_style(). Upgrading to OMGF Pro will resolve your issue. You can do so here.

    You can verify this by looking at the source of your page (right-click anywhere and select View Source) or prepend your site’s URL with view-source: in your browser’s Address Bar. Then search the page’s source (CMD / CTRL + F) for any occurence of fonts.g.

    Let me know if you need anything else!

    All the best,

    Daan

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fonts are not displayed in order to be optimized’ is closed to new replies.