• Resolved Ann

    (@akg-free)


    Hi Daan – once again.

    We have a problem since v4.something on some, but not all our projects.

    Runs on a Divi Builder based website (also with activated Autoptimize).

    Pages with themify builder
    v4.2.5: neither removes nor replaces external google fonts
    Rollback to v3.8.3: replaces but doesn’t remove

    With Genesis Framework
    v4.2.5: removes but doesn’t replace
    Rollback to v3.8.3: removes and replaces

    All caches cleared and temporarily deactivated – nothing changed.

    On both, neither manual nor automatic mode works in 4.2.5.

    Do you have any experiences with themify and/or genesis and any idea?
    Both enqueue fonts via WPs enqueue style – for themify: https://themify.me/docs/enqueue-scripts

    With regards,
    Ann-Kristin

    • This topic was modified 4 years ago by Ann.
Viewing 4 replies - 16 through 19 (of 19 total)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi!

    I received the URL and I checked out the page’s source.

    The reason why the free version of OMGF can’t detect the fonts, is because the fonts seems to be loaded right before the closing (</body>) tag.

    The free version of OMGF can only detect the stylesheets that’re enqueued using WP’s stylesheet queueing system (wp_enqueue_styles()).

    Upgrading to OMGF Pro will resolve the issue you’re having. You can do so here.

    On an unrelated (optimizational) note: there seem to be a bunch of preloads (<link rel="preload ... />) at the bottom of your page source as well. This defeats the purpose of preloads ?? Preloads should be in the <head> of your page.

    Thread Starter Ann

    (@akg-free)

    Hi Daan, argh, I got no notice about your answer.

    Thank you for taking a look & the hint with the preloads – my boss wants it to stay this way. ??

    I’ll try to hook this tomorrow & will let you know if this works.

    Thread Starter Ann

    (@akg-free)

    Hi Daan & sorry for the delay.

    I’ve unhooked Themifys font loading and enqueued the fonts, but OMGF only detects the regular, not the italic fonts.

    function google_fonts() {
        wp_enqueue_style( 'google-fonts', 'https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800', false );
    }
    add_action( 'wp_enqueue_scripts', 'google_fonts' );

    Am I routine-blinded?

    Greetings
    Ann

    • This reply was modified 3 years, 5 months ago by Ann.
    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi Ann,

    I just tested the code snippet you sent and I can confirm this is a bug. It’ll be fixed in the next release, which’ll be released in the next couple of days.

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘OMGF 4(.2.5) not running’ is closed to new replies.