Last active
August 4, 2024 00:08
-
-
Save KaineLabs/22d1a44f356350ec4cb0c481df6d512a to your computer and use it in GitHub Desktop.
Remove Youzer Google Fonts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Remove Youzer Google Fonts. | |
*/ | |
function yzc_remove_google_fonts() { | |
wp_dequeue_style( 'yz-opensans' ); | |
wp_deregister_style( 'yz-opensans' ); | |
} | |
add_action( 'wp_enqueue_scripts' , 'yzc_remove_google_fonts', 999 ); |
wp_deregister_style
Done i updated the snippet, thank you so much for reporting this :)
Stay safe and have a great week!
FYI the style name is now youzify-opensans
. By replacing yz-opensans
with it in the given function, Google Fonts are removed.
(Using Youzify v3.3.3)
thank you for this guys! 🫡
my site is crashing, is this still the way?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to actually remove the woff files from being loaded you should change code to include this?
wp_deregister_style
e.g.