• Environment:
    WordPress 6.4.2
    Mailpoet 4.44.1

    Issue:
    I am attempting to remove Google Fonts being loaded by Mailpoet.

    Failed Workflows:

    • Adding this filter to website’s theme function file:
    add_filter('mailpoet_display_custom_fonts', function () {
        return false;
    });
    • Mailpoet > Settings > Advanced > Loading 3rd-party libraries > Off
    • Both of the afore mentioned strategies, combined.

    Troubleshooting Notes:
    I have cleared caching.
    I have confirmed Mailpoet as the culprit responsible for loading the unwanted fonts (by deactivating Mailpoet and watching the undesired fonts disappear from loading).

    Seeking help and advice on this matter. Thank you for your time and attention.

Viewing 1 replies (of 1 total)
  • Plugin Support Lynn J.a11n

    (@lynnjat7)

    Hi there @xizor,

    Thanks for confirming the steps you have taken to disable Google Fonts from your website.

    I have tested this out on my test site which runs a lean environment of just WooCommerce, MailPoet, and the Storefront theme. Using the latest version of MailPoet, I was able to confirm that deactivating the advanced option to prevent the loading of 3rd party libraries blocked Google Fonts from loading on my site.

    I was able to verify that the libraries were not loading by:

    • editing templates in the MailPoet editor –> font such as Roboto and Pacifico were not offered as options in the Style area (as per here)
    • comparing the source HTML of my home page with this option enabled, versus disabled, showed that the Google Font stylesheets (which are mailpoet_custom_fonts_0-css, mailpoet_custom_fonts_1-css, and mailpoet_custom_fonts_2-css) are loading with the option turned on, but not loading when the option is turned off.

    Please ensure the option is turned off, and if these three CSS files are still showing as loading in the source HTML of your home page, please provide a link to your website so we can do additional testing.

Viewing 1 replies (of 1 total)
  • The topic ‘Filter Failure > MailPoet > Remove Google Fonts’ is closed to new replies.