wordpress.org – Google Font wont dequeue, wordpress


im having an issue getting one of the google fonts to dequeue on my site

Ive done all the reading, and i can see it needs to be dequeued after its been called, but before its been printed, but i cant figure out how to find that info? i also cant work out which plugin is making the call?

this is the code i have put in my child functions.php

function remove_google_fonts_stylesheet() {
wp_dequeue_style( ‘googleFontsOpenSans’ );
wp_dequeue_style( ‘google-fonts-1’ );
add_action( ‘wp_enqueue_scripts’, ‘remove_google_fonts_stylesheet’, 12 );

it worked great for the “opensans” font, but the “google-fonts-1” which is actually roboto, wont seem to go away no matter what changes i make.


Subscription Box Australia 11 months 2021-09-14T02:33:16-05:00 0 Answers 0 views 0

Leave an answer