Web Font Optimization breaks font display
-
Enabling “Web Font Optimization” breaks Google fonts on the frontend for non-logged in users.
The fonts are being included in
functions.php
with the following code:wp_enqueue_style( 'google-fonts', 'https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,900;1,900&family=Open+Sans:wght@400;600;800&display=swap', array(), null, 'all');
They work great with optimization disabled, but Merriweather fails to load for non-logged in users when optimization is enabled.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Web Font Optimization breaks font display’ is closed to new replies.