I need to change the body text font to Arvo over my entire website. I have managed to change “Heading Font” to Arvo in the pull down menue under “General Styling”. However, no Arvo is available in the “Defines the Font for your body text” pull down menue.
How can I change the body text to Arvo for the entire site using Enfold 3.0.2 and WP 4.0?
BR
Lars
Hi kihlbaum!
Please refer to Ismael’s post here – https://kriesi.at/support/topic/add-new-font/#post-234710
Best regards,
Yigit
Thanks! I tried to add the following code to functions.php but to veil:
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[Arvo] = Arvo:400,600,800′;
return $fonts;
}
add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[Arvo] = Arvo:400,600,800′;
return $fonts;
}
I fortgot to add that the result was a HTTP 500 error message
Ok, my bad. Adding the ‘ where they belong in the code I avoid the 500 error, however, no Arvo shows up in the body text fonts dropdown menue.
Regards,
Lars
Hi!
Thank you for the update.
The font weights are incorrect. Please get the code here: http://pastebin.com/2ReG2VFL
Regards,
Ismael
Thanks for the quick reply! However, adding that code to functions.php still does not get Arvo as a choice in the “Defines the Font for your body text” drop down menue.
See screen dump http://www.restaurangtradition.se/os/Enfold-Arvo.jpg.
Hi!
Please try to add it below this code on line 16:
if(isset($avia_config['use_child_theme_functions_only'])) return;
Cheers!
Ismael
Worked like a charm. Thanks!