Google Fonts are not removed
-
Hello, on WP 7.0 and LS cache 7.8.1, PHP 8.4, Firefox 151 the dev. console (F12), Network tab still shows:
GET
https://fonts.googleapis.com/css?family=Poppins:500|Open Sans:400,600
https://fonts.gstatic.com/s/opensans/v44/memvabcdef-abcd-muw.woff2
and similar.Despite option to remove G. fonts has been enabled ( https://docs.litespeedtech.com/lscache/lscwp/pageopt/#remove-google-fonts ) in Page optimization>HTML and settings saved, all LS caches cleared, page reloaded without cache several times.
So I had to revert to a PHP snippet (Fluent Snippets plugin):
add_action(
'wp_enqueue_scripts',
function() {
wp_dequeue_style( 'google-fonts' );
wp_deregister_style( 'google-fonts' );
},
999
);
You must be logged in to reply to this topic.