Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #394035

    Hi,
    I have a little problem, I read few topic about google fonts, I found code:

    
    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Open Sans'] = 'Open Sans:400,500,600,700,800,900&subset=latin,latin-ext';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Open Sans'] = 'Open Sans:400,500,600,700,800,900&subset=latin,latin-ext';
    return $fonts;
    }

    and I added it to my function.php after global $avia_config; but still I don’t have polish characters in posts title…. in open sans of course :(

    print screen

    thanks in advance for help!

    #394246

    Hey TomaszStelmach!

    Thank you for using enfold.

    Add this on the functions.php:

    
    function add_subset_func($fontlist) {
    	$fontlist .= ",cyrillic";
    	return $fontlist;
    }
    add_filter('avf_google_fontlist', 'add_subset_func');

    Cheers!
    Ismael

    #394640

    Finally it’s works, thank you! :)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Google font (open sans) in post title – latin subset doesn't work’ is closed to new replies.