Issues with Google Fonts

Hello,
I am having some troubles with Google fonts.
I have loaded by using the following code:

function custom_add_google_fonts() {
wp_enqueue_style( ‘custom-google-fonts’, ‘https://fonts.googleapis.com/css?family=Raleway:400,400i,600, 700, 800’, false );
}
add_action( ‘wp_enqueue_scripts’, ‘custom_add_google_fonts’ );


The code seems to work to some extent, in fact I can see paragraph text certainly displayed in raleway font.
However any bold and semibold or bigger weight does not render (find attached picture).

You can see the page at http://funzionamente.it

Thanks in advance

Hey there

SOrry but not clearly understand, the font is already applied, its raleway :slight_smile: what is the problem?

actually it seems it is but it is not! In the image the header title is not raleway although the debugger shows raleway.
That is what I do not understand… it is as though the template is unable to load up the font 100%?
any issue with the php code by any chance?

thanks,
Umberto

Hello there,

I hope you are doing well today.

Have you added any CSS code to change the font? There could be some additional code causing this issue.

Best Regards,
Support

nope, not at all, I mean the only CSS code I added is always calling raleway fonts, in fact, as you can see in the pic it is still raleway.

HI udedomenico

the font is loaded, this means function is working, the font is applied everywhere on your site, even on bold texts and for main jumbotron text as well, you can check it in the computed tab in the dev tools,
you can also use CSS method to load from Google, without php function, which i think is better for you