Open
Reported for: Toolset WooCommerce Blocks 2.8.1.1
When Toolset WooCommerce Blocks plugin (aka WooCommerce Views) is active you may see Google Fonts added to the page source on the front-end, pointing to https://fonts.googleapis.com/.
This is the same issue as previously reported and fixed for Views/Blocks, which also affects the Toolset WooCommerce Blocks plugin.
The problem occurs because assets required for the back-end editor are also loaded on the front end, when not required.
This will be fixed in any upcoming release of this plugin.
In the meantime you can dequeue the unnecessary CSS files by adding the following PHP snippet to your site (at Toolset > Settings > Custom Code, or your theme’s functions.php file).
add_action( 'wp_print_styles', 'ts_dequeue_styles', 1 ); function ts_dequeue_styles( $handles ){ global $wp_styles; $wcv_styles = $wp_styles->registered['woocommerce_views-block-style-css']; // dequeue & deregister existing style with dependencies wp_dequeue_style( 'woocommerce_views-block-style-css' ); wp_deregister_style( 'woocommerce_views-block-style-css', $wcv_styles->src ); // re-enqueue same style minus dependencies wp_enqueue_style( 'woocommerce_views-block-style-css', $wcv_styles->src, array(), $wcv_styles->ver ); }
I had a stray Google Font link on my site that I narrowed to the Toolset Woocommerce Blocks plugin. I tried this snipped but it was still calling the font. I did some more digging and the only other reference in my page’s front end was in a css rule for the on sale badge. I don’t use the Toolset on sale badge, but in my previous theme I did. And the css rule was calling the Google Font I used in that previous theme. So I went into the content template and found that if I turned the on sale badge toggle on, it showed that the font was defined. I reset the font setting, turned the on sale badge back off, and the call to the Google Font was gone! So maybe that’s part of the problem that people are having, old setting being called even though they aren’t meant to be active anymore.