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

    Hello,

    I want to use roboto font on my site but I can use it only as heading font. How can I use it for my whole site?
    I have the last update installed (3.6.1) but also not the roboto font. But in the changelog I see: – added: new google fonts. But why not the font that google use by itself? https://material.google.com/style/typography.html

    Thank you

    Cheers

    #646113

    Hey Miikey,

    Please refer to this: http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/. You would only need to add the bottom code though:

    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    
    $fonts['PT Sans'] = 'PT Sans:400,700,400italic,700italic';
    $fonts['PT Sans Narrow'] = 'PT Sans Narrow:400,700';
    return $fonts;
    }

    Just replace the PT Sans font with the font you want to add from Google Fonts.

    Best regards,
    Rikard

    #646179

    Hello,

    This don’t work for my?

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘roboto’] = ‘roboto:400,700,400italic,700italic’;
    $fonts[‘PT Sans’] = ‘PT Sans:400,700,400italic,700italic’;
    return $fonts;
    }

    #647137

    Hi,

    Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Thanks,
    Rikard

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