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

    I’m migrating a website to WordPress and therefore I need more font-weight variants of Roboto.
    In Enfold the only font-weights are 100,400 and 700.
    How do I add those other font-weight to the theme?

    #1010081

    Hey tijshensen,

    Please add this code to the child theme functions.php

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

    Best regards,
    Peter

    #1010348

    Thanks, this works like a charm!

    #1010414

    Hi,

    Great, glad you got it working :-)

    Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.