Hi,
I’d like to add a new Google Font (Cinzel Decorative) in order to modify my headings.
I tried that :
https://kriesi.at/support/topic/new-custom-font/?login_error
but it didn’t help : when I go to Theme Options > Advanced styling > All headings > Font family, “Cinzel Decorative” isn’t in the list.
What did I miss ?
Thanks a lot for any help,
Christelle
Here is what I put in my functions.php :
if(isset($avia_config[‘use_child_theme_functions_only’])) return;
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Cinzel Decorative’] = ‘Cinzel Decorative’;
return $fonts;
}
add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘Cinzel Decorative’] = ‘Cinzel Decorative’;
return $fonts;
}
Hey chcarrelogins!
Thank you for using Enfold.
Please remove the first line. This is the final code:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Cinzel Decorative'] = 'Cinzel Decorative';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Cinzel Decorative'] = 'Cinzel Decorative';
return $fonts;
}
Regards,
Ismael
Thank you so much Ismael, I tried without the first line, it works.
Thanks again.