Tagged: google fonts
I’m trying to use the Google Font Quattrocento for the main paragraph font but this css doesn’t work. however some other google fonts do and some don’t. I can’t figure out why, is that code correct? Is that all I have to do?
p{
font-family: ‘Quattrocento’,sans-serif;
}
*I’m having it flip to sans-serif so I can tell quickly if it’s working or not.
I figured it out.
Had to drop this into functions.php of the child theme –
function custom_add_google_fonts() {
wp_enqueue_style( ‘custom-google-fonts’, ‘https://fonts.googleapis.com/css?family=Quattrocento:400,700’, false );
}
add_action( ‘wp_enqueue_scripts’, ‘custom_add_google_fonts’ );
Hi,
Great, glad you got it working and thanks for sharing. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
Rikard
yep, this can be closed.
Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon