• Resolved newshop

    (@newshop)


    Hello,
    I noticed that your plugin loads Font Awesome. I dont want that, but I cant find a way to dequeue it. How can I remove it completely?
    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Dotstore

    (@dots)

    Hello newshop,

    Thanks for reaching out to us.

    Please add below code in your themes functions.php file to de-register our plugin Font Awesome file.

    add_action( 'wp_enqueue_scripts', 'mywptheme_child_deregister_styles', 11 );
    function mywptheme_child_deregister_styles() {
        wp_dequeue_style( 'advanced-flat-rate-shipping-for-woocommercefont-awesome' );
     
    }

    Please add above code and let us know how its works.

    Thanks,

    Thread Starter newshop

    (@newshop)

    Hm, are you sure that “advanced-flat-rate-shipping-for-woocommercefont-awesome” is correct? I cant find that string in the whole plugin (used a scanning tool). I also want to prevent the font awesome stylesheets (e.g. font-awesome.min.css) from loading.

    • This reply was modified 4 years, 5 months ago by newshop.
    • This reply was modified 4 years, 5 months ago by newshop.
    Thread Starter newshop

    (@newshop)

    Still searching for a solution. Any help would be really appreciated.

    Plugin Support Hitendra Chopda

    (@hitendra-chopda)

    Hello newshop,

    Thanks for your reply.

    Yes, provided the file name is true and you are unable to find it in our plugin because we have called it dynamic.

    See below for both file included types so you can get an idea about it.

    wp_enqueue_style( $this->plugin_name . 'font-awesome', plugin_dir_url( __FILE__ ) . 'css/font-awesome.min.css', array(), $this->version, 'all' );

    wp_enqueue_style( 'font-awesome-min', plugin_dir_url( __FILE__ ) . 'css/font-awesome.min.css', array(), $this->version );

    Please add below code and check at your side that both file deque on your site or you can search given code in your plugin and just comment both lines and it will work for you.

    add_action( 'wp_enqueue_scripts', 'mywptheme_child_deregister_styles', 11 );
    function mywptheme_child_deregister_styles() {
        wp_dequeue_style( 'advanced-flat-rate-shipping-for-woocommercefont-awesome' );
        wp_dequeue_style( 'font-awesome-min' );
     
    }

    Hope this helps. Let us know if you are having any trouble.

    Thanks,
    Hitendra & Dotstore team

    Thread Starter newshop

    (@newshop)

    Perfect, that works, thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove Font Awesome’ is closed to new replies.