Hi,
I added a Google font to Enfold theme via functions.php file.
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Roboto Condensed'] = 'Roboto Condensed:300,300italic,400,400italic,700,700italic:latin';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Roboto Condensed'] = 'Roboto Condensed:300,300italic,400,400italic,700,700italic:latin';
return $fonts;
}
I go to “Advanced Styling” and select H1 to edit, but under font weight, I can only see “default, normal, bold, light” – however, I can’t see 300, or any of the italic options.
What is the correct way to set my font-weights when I add a new Google font?
Hey,
Add those via CSS, paste the following to General Styling > Quick CSS:
h1{
font-weight: 300;
font-style: italic;
}
Best regards,
Josue
OK, that’s what I thought. Just wanted to make sure I was doing it correctly. Thanks for your help!
You are welcome, glad to help :)
Regards,
Josue