Hi @helijobs
You can add the following code to your child theme’s functions.php or you can install and make use of https://wordpress.org/plugins/code-snippets/
add_action( 'wp_print_styles', 'remove_font_awesome_style' );
function remove_font_awesome_style() {
wp_dequeue_style( 'fontawesome' );
wp_deregister_style( 'fontawesome' );
}
@helijobs we’re also working on some updates that will address our “Disable styles” option in the coming weeks and months.
@minova & @markzahra, thank you for your replies.
I tried to inject the code in the theme functions file, and then by using a code snippet plugin. Neither worked. Google PageSpeed is still reporting that it is being loaded under “Diagnostics / Minimize Critical Requests Depth”. Check the link PageSpeed
I have also tried to scan the code in your plugin to comment out the part that loads the css-file from maxcdn.bootstrapcdn.com but I couldn’t find it, and PHP isn’t my strongest suit.
I have also used FontAwesome’s own plugin to check that it is the WP RSS Aggregator that is injecting the font-awesome.min.css file. (It reports a potential conflict when installing the FontAwesome-plugin.)
@minova & @markzahra
My apologies. I just realized that I am using the “Speed Booster”-plugin which has an option: “Removes extra Font Awesome styles”. When this was activated, it came in conflict with the snippet you provided. I deactivated the option, and the snippet now works like a charm.
No worries @helijobs, glad you got it figure out.