Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #340501

    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

    #340683

    Hi kihlbaum!

    Please refer to Ismael’s post here – https://kriesi.at/support/topic/add-new-font/#post-234710

    Best regards,
    Yigit

    #340705

    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;
    }

    #340709

    I fortgot to add that the result was a HTTP 500 error message

    #340711

    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

    #340863

    Hi!

    Thank you for the update.

    The font weights are incorrect. Please get the code here: http://pastebin.com/2ReG2VFL

    Regards,
    Ismael

    #340923

    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.

    #341313

    Hi!

    Please try to add it below this code on line 16:

    if(isset($avia_config['use_child_theme_functions_only'])) return;
    

    Cheers!
    Ismael

    #341357

    Worked like a charm. Thanks!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Changing body text font’ is closed to new replies.