Tagged: google font
Hey Guys, I want to install a new Google font (Titillium Web) to Enfold for the headers but I don’t know where to install it? Would appreciate your help.:-)))
Hey!
Try adding this at the very end of your theme functions.php file:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Titillium Web'] = 'Titillium+Web';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Titillium Web'] = 'Titillium+Web';
return $fonts;
}
Cheers!
Josue
Thanks Josue…. I added the script to my functions.php file as you suggested and changed the setting in the theme styling for both headers and general body text to “Titillium Web” but on screen the font doesn’t look any different??
http://god-dag.dk/
Hi!
Try with this code instead:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Titillium Web'] = 'Titillium Web';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Titillium Web'] = 'Titillium Web';
return $fonts;
}
Cheers!
Josue
Thanks Josue, it worked… now client will be happy!!:-)