Announcement

Collapse
No announcement yet.

How to remove the Google Fonts API call from EasyCart plugin

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to remove the Google Fonts API call from EasyCart plugin

    My website speed test shows the following call to Google API. I have searched my website and found that it is in the file plugins/wp-easycart/wpeasycart.phpI'd like to disable all calls to Google. I can store the fonts locally or just default to web-safe fonts, it does not matter to me, but I'd like to start with just disabling the calls to Google. How would I go about it?
    I've got the following plugins installed:
    WP EasyCart
    WP EasyCart PRO
    WP EasyCart Weight Minimum

    WordPress 4.9.7 running Shop Isle theme. Website address: https://farmqueenfoods.ca

  • #2
    If anybody else is interested I've got the google API call removed by the following code in functions.php file in my child theme (deregister and dequeue):
    Code:
    function deregister_styles() {
    wp_deregister_style( 'wpeasycart_gfont' );
    }
    add_action( 'wp_print_styles', 'deregister_styles', 100 );
    function wpse_dequeue_google_fonts() {
    wp_dequeue_style( 'wpeasycart_gfont' );
    }
    add_action( 'wp_enqueue_scripts', 'wpse_dequeue_google_fonts', 20 );

    Comment

    Working...
    X