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

    Hi,
    how is it possible to load different font-weights for open sans such as 100,200,300?
    I have tried the solutions mentioned here before to edit the

    class-avia-type-fonts.php line 726: Open Sans => Open Sans:200,300,400,600

    and

    add_filter('avf_blog_style','avia_change_tag_blog_layout', 10, 2); 
    function avia_change_tag_blog_layout($layout, $context){
    if($context == 'tag') $layout = 'single-small';
    return $layout;
    }
    
    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts){
    	$fonts['Open Sans'] = 'Open Sans:100,200,300,400,600,700';
    	return $fonts;
    }
    	
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts){
    	$fonts['Open Sans'] = 'Open Sans:200,300,400,600,700';
    	return $fonts;
    

    both are not working.

    #1065472

    Hey jopradev,

    You need to go to the Google fonts, download all the extra font weights and upload them to your website and then you can use them.

    If you need further assistance please let us know.
    Best regards,
    Victoria

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