Not all fonts working after 4.0 update
-
After the recent update, not all fonts are working on my site.
The main site font is working, however I’m enqueuing a 2nd font (Montserrat) via theme’s functions.php
Code as follows:
function wpb_add_google_fonts() {
wp_enqueue_style( ‘wpb-google-fonts’, ‘https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap’, false );
}
add_action( ‘wp_enqueue_scripts’, ‘wpb_add_google_fonts’ );However, this font is not working on the front end at all.
When viewing the site while logged in, I see the following in the HTML markup:
<link rel=’stylesheet’ id=’wpb-google-fonts-css’ href=’https://moodle.com/wp-json/omgf/v1/download/css2?family=Montserrat%3Awght%40400%3B500%3B600&display=swap&handle=wpb-google-fonts&ver=5.5.1′ type=’text/css’ media=’all’ />
Any ideas?
- The topic ‘Not all fonts working after 4.0 update’ is closed to new replies.