Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #358481

    Hi,

    is it possible to manage all font weights of a Google Font?
    It seems to be possible to have 300, 400 and 600 only,
    but I need lighter and heavy weights too…

    Thanks

    #358855

    Hey studiotopo!

    Thank you for using Enfold.

    Which font are you trying to use? You can use this filter on functions.php, below line 16:

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Open Sans 2'] = 'Open Sans:300italic,400italic,600italic,700italic,800italic,700,300,600,800,400'';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Open Sans 2'] = 'Open Sans:300italic,400italic,600italic,700italic,800italic,700,300,600,800,400'';
    return $fonts;
    }

    Select Open Sans 2 on Enfold > General Styling > Fonts panel.

    Cheers!
    Ismael

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