• Resolved Jos Klever

    (@josklever)


    In the settings of Forminator I have Fonts set to “Use Theme Fonts”.
    My theme is using local hosted fonts, but Forminator loads Roboto anyway and uses it in the form for the labels and fields. Why is that?

    It’s loaded via the following code:
    <link rel='stylesheet' id='forminator-font-roboto-css' href='https://fonts.googleapis.com/css?family=Roboto&ver=1.0' type='text/css' media='all' />

    I’ve already tried to change the setting, save it and change it back, but that didn’t help. Cache was cleared, so that’s not an issue.

    Can you please fix it?

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @josklever

    I hope you are doing well.

    We reported this situation to our developers, I hope we can improve it on a future version.

    A temporary workaround is removing the fonts using a custom script.

    You can remove the Font from the front end using this script:

    <?php
    
    //Dequeue Styles
    function project_dequeue_unnecessary_styles() {
        wp_dequeue_style( 'forminator-font-roboto' );
        wp_deregister_style( 'forminator-font-roboto' );
    }
    add_action( 'wp_print_styles', 'project_dequeue_unnecessary_styles', 20 ); 

    You can use it as a mu-plugin https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    Best Regards
    Patrick Freitas

    Thread Starter Jos Klever

    (@josklever)

    Hi Patrick,

    I’ve tested this code snippet via both functions.php of my child theme as via a mu-plugin. It doesn’t work. Is the priority and timing correct?

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @josklever

    You can try to increase the priority, are you using a Pro theme?

    Also, can you let us know if your Form is set to load from Ajax in Form > Behaviour > Rendering?

    Best Regards
    Patrick Freitas

    Thread Starter Jos Klever

    (@josklever)

    I’ve tried priority 2, 20, 200 and 2000, but that makes no difference.

    What do you mean with a “Pro theme”? I’m using Genesis Framework with the Enterprise Pro child theme, but the issue persists without any other plugins and a default theme (Twenty Twenty-One).

    Ajax is turned off at Rendering.

    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @josklever,

    Thank you for getting back to us.

    Could you please enable “Load form using AJAX” and check if the solution works?

    Please let us know here how that goes.

    Kind Regards,
    Nebu John

    Thread Starter Jos Klever

    (@josklever)

    Changing that setting didn’t help.

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    HI @josklever,

    I gave a quick test in my system and I can confirm the above snippet shared does work in my system when tested.

    Could you please confirm whether the issue isn’t due to cache? Do you notice the same if the cache is cleared?

    Could you also check whether you notice the same issue if all the plugins are temporarily deactivated except Forminator and if you switch to a default WP themer? This would also help in ruling out the source of the issue and whether it’s still specific to Forminator or not.

    If you still notice the same issue even with all the plugins disabled and with the default theme then please do share your form export so that we could check further if needed.

    Please check the following doc on how to export a form:
    https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export

    You can share the export file via Google Drive, Dropbox or any such cloud services in the following reply.

    We are looking forward to your response.

    Kind Regards,
    Nithin

    Thread Starter Jos Klever

    (@josklever)

    Hi Nithin,

    Please read the previous comments, before asking for information, that’s already known:

    I’m using Genesis Framework with the Enterprise Pro child theme, but the issue persists without any other plugins and a default theme (Twenty Twenty-One).

    It’s definitely not a caching issue (was cleared and disabled for previous test and doesn’t cache for logged-in users).

    Form export: https://www.dropbox.com/t/ILDIFr4XaMPVOfkT

    Thread Starter Jos Klever

    (@josklever)

    I’ve just updated to 1.16.2 and went into the settings again to check if I could find more to test.

    In the form settings I noticed that the Fonts setting had changed to Custom, when it was set to Use Theme Fonts before. So I changed it back to Use Theme Fonts again and now it worked. So somehow the update must have triggered the ability to correct the setting.

    It’s solved now.

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Google fonts are loaded even when “Use Theme Fonts” is enabled’ is closed to new replies.