How to dequeue
-
Hello,
Thank you for this useful plugin.
In some cases, the wp_enqueue of the fonts.google style (for Open-Sans) causes slow load times in China. Normally, the disable google fonts plugin works for us on this.
I have additionally tried to dequeue the style, as shown below, but this only removes one instance of the style. Apart from editing your plugin, how can I completely dequeue this style?
//dequeue css from plugins function remove_unwanted_css(){ wp_dequeue_style('wprmenu-font'); } add_action( 'wp_print_styles', 'remove_unwanted_css', 100);
Thank you
- The topic ‘How to dequeue’ is closed to new replies.