Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #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?


    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,


    Thanks, this works like a charm!



    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,

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