Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #627542

    Hey! I have added the following code to function.php but i still cant see the fonts.
    What i am doing wrong?

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘Abril Fatface’] = ‘Abril Fatface’;
    return $fonts;
    }

    add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
    function avia_add_content_font($fonts)
    {

    $fonts[‘Playfair Display’] = ‘Playfair Display:900’;
    return $fonts;
    }

    #627830

    Hi CharlieBarey!

    Please try adding your code right below following line in functions.php file

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

    Regards,
    Yigit

    #627855

    Yes Yigit! That was the problem.
    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Additional google fonts’ is closed to new replies.