Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Tagged: enfold, google fonts, ubuntu font
Hi there
I was wondering how to add the Google Font Ubuntu font to Enfold for H1, H2, H3, H4, H5 and H6
Hey whdsolutions,
Yes there is, please follow this: http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/. You can then set the font for your headers under General Styling->Fonts or Enfold->Advanced Styling.
Best regards,
Rikard
I have done this and added to Theme Functions (functions.php)
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Ubuntu’] = ‘Ubuntu:400,700’;
$fonts[‘Gentium’] = ‘Gentium+Book+Basic:400i’;
return $fonts;
}
add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘Ubuntu’] = ‘Ubuntu:400,700’;
$fonts[‘Gentium’] = ‘Gentium+Book+Basic:400i’;
return $fonts;
}
Nothing happens when I go to GENERAL STYLING, the fonts do NOT appear in the lists
What is the child theme – I could benefit from you giving me the path of the file I need to change if possible?
Hi,
If you haven’t installed a child theme then I would recommend that you do that first since your edits will be overwritten on updates otherwise: http://kriesi.at/documentation/enfold/portfolio-item/create-a-child-theme/.
Please post admin login details in private if you should need any further help.
Best regards,
Rikard