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,
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 5 years, 8 months ago by
newshop.
-
This reply was modified 5 years, 8 months ago by
newshop.
Still searching for a solution. Any help would be really appreciated.
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
Perfect, that works, thank you!