Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #818657

    Hi,

    i have found some threads, but no suitable solution.

    I try to add a new google font to my enfold child theme.

    I’m using this code in my functions.php:

    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Roboto Slab'] = 'Roboto Slab:100,400,700';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    
    $fonts['Roboto Slab'] = 'Roboto Slab:100,400,700';
    return $fonts;
    }

    The font is selectable in the font settings tab at the bottom of the list. But it will not change on the site.

    Thanks in advance

    Alex

    #818698

    Hey JKManagement,

    Thanks for the login details, it looks like you haven’t selected it under General Styling->Fonts, could you try to set it there please?

    Best regards,
    Rikard

    #818709

    Thank you very much! Now its working, But, what did you change?

    I tried every possible Style-Setting before.

    #818784

    Hi,

    I didn’t change anything, I just saw that you had not actually selected the font you wanted in the settings I pointed out.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.