Google font not loading for some words
-
Hello!
I’m having an issue when I refresh my website. Some of my headings that use a google font are not showing up with that font. The weird thing is that some of the words in the heading are correct and some aren’t. It doesn’t happen on every reload but on some. See this image:
https://i.imgur.com/0rWRHew.png
website: https://staging.2dudes.io/fielding
The font: https://fonts.googleapis.com/css?family=Righteous
I had this in my functions.php file before my css file:
wp_enqueue_style( 'righteous_font', 'https://fonts.googleapis.com/css?family=Righteous' );
That didn’t work so I commented it out and added this to the very top of my CSS file:
@import url(https://fonts.googleapis.com/css?family=Righteous);
This is the CSS code:
h1,h2,h3,h4,h5,h6 { font-family: 'Righteous', cursive; font-weight: 400; line-height: 1.0; }
I haven’t tried downloading the font and hosting it on the server yet. But I feel like I had it right the first time and now I’m going away from the proper way to do things.
Any other suggestions?
- The topic ‘Google font not loading for some words’ is closed to new replies.