• 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 15 replies - 1 through 15 (of 19 total)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi!

    Sorry for the late reply.

    What’s important for sites that use Autoptimize and Divi in v4 is that all Google Fonts options are set to their default, so in Divi it’s supposed to be switched On (Use Google Fonts) and in Autoptimize to Leave As Is.

    In v3 this didn’t matter, but that wasn’t more than a happy coincidence. ??

    Hope it helps! Let me know how it goes!

    Thread Starter Ann

    (@akg-free)

    Hi Daan,
    there seems to be a misunderstanding:

    On DIVI it works: we already configure it like you’ve explained. ??

    With THEMIFY and GENESIS it doesn’t work for us.
    Even on a very small genesis one pager without Autoptimize or similar.
    We run WP Optimize there but we don’t use its cache.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    In Genesis it doesn’t work? That’s really weird, since I’ve used OMGF on several Genesis themes. Never heard of Themify.

    Are you getting any errors on your console (F12) related to OMGF?

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Just to verify: what happens when you disable WP Optimize?

    Otherwise, you can set OMGF to Automatic and visit your frontend. Press F12 to open your console to see if you get any errors related to OMGF. Also check the network tab, if any requests are made to OMGF’s API (wp-json/v1/omgf/…)

    Thread Starter Ann

    (@akg-free)

    Disabling WP Optimize doesn’t change anything.

    OMGF neither works automatic nor manual

    On automatic mode (and with active swap option) there’s a warning in the network tab:
    The resource from “https://myurldoesntmatterhere.com/wp-json/omgf/v1/download/css?family=Ek+Mukta%3A200%2C800&display=swap&handle=stahl-schrauben-fonts&original_handle=stahl-schrauben-fonts&ver=1.5.0” was blocked due to MIME type mismatch (“application/json”) (X-Content-Type-Options: nosniff).

    And an error when visiting this link:
    “SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data”

    Thread Starter Ann

    (@akg-free)

    We’ve been using OMGF for a while with different Genesis themes without problems, too.

    But with the newer version(s) it doesn’t matter if we’re using an older Genesis theme which loads the fonts directly via functions.php or a newer theme (like Altitude Pro 1.5.0) where they’re integrated in a different way:

    config/appearance.php:
    return [
    ‘fonts-url’ => ‘https://fonts.googleapis.com/css?family=Ek+Mukta:200,800&display=swap’,”

    functions.php:
    “wp_enqueue_style(
    genesis_get_theme_handle() . ‘-fonts’,
    $appearance[‘fonts-url’],
    [],
    genesis_get_theme_version()
    );”

    Sorry if being not precise enough, I’m not a developer but a pixel pusher. ??

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    blocked due to MIME type mismatch (“application/json”) (X-Content-Type-Options: nosniff).

    This part is interesting.

    If possible, on one of the sites that it isn’t working, can you switch to a default theme that uses Google Fonts? E.g. Twenty Sixteen, to see if OMGF starts working then?

    Because if not, we’ve excluded the fact that it’s a Genesis or Themify issue.

    Thread Starter Ann

    (@akg-free)

    Hi Daan,
    sorry for reporting back so late.
    Guess what! The error came from the FONT NAME! ??
    In the above mentioned Genesis theme the “Ek Mukta” is embedded, but doesn’t exist (anymore) in Google Fonts, it’s (now) called “Mukta” without “Ek” there.
    For Themify I’ve found some errors caused by our theme / plugin combo & will get back to you after we’ve found out what’s up there.
    Greetings,
    Ann

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hey, thanks for letting me know about the namechange.

    Yeah, Google does that something. The same with Muli becoming Mulish. That’s why I built support for name changes into OMGF, the thing is, I have to specify the name changes myself.

    I just released OMGF v4.3.1 which includes the rename mapping for Ek Mukta > Mukta. So that should resolve this issue for you!

    Thread Starter Ann

    (@akg-free)

    Thanks for the info about Muli(sh) – how wooonderful, we’ll have some projects with it. -_-

    Wow, thank you for the fast update – I’ve already fixed it in our child theme. ??

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Awesome!

    Looking forward to whatever you can find about Themify. If there’s anything I can do to help, let me know.

    Can we mark this issue as resolved?

    Thread Starter Ann

    (@akg-free)

    I’d say I’ll get back to you with a new post IF there’ll be any future problems with Themify! So yup, mark it as resolved, doesn’t make sense in a few weeks or the like if we continue here.

    Thread Starter Ann

    (@akg-free)

    Hi Daan.
    Here I am back again – v4.5.5 & Themify:
    “Poppins” can’t be detected, even if I activate Themifys development mode to disable the themes caches.

    No other caching plugins are running.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi!

    Could you maybe share a site URL, so I can look at the the implementation of Google Fonts?

    If you don’t want to share it here, you can use this form to send it to me via email or open up a new topic and share it in the URL field (that way it’ll only be visible to logged in users)

    Thread Starter Ann

    (@akg-free)

    Hey Daan – thank you for your answer and your offer – I’ve used your form to send you the URL and two backend screenshots.

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