Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #461489

    Hi!
    I am using a Child Theme.
    I have selected Tenor Sans for heading and Open Sans for the main content in the General Styling.

    Tenor Sans works only in Chrome and only on PC. Firefox and IE do not show Tenor whatever I do. I have traced the problem to the point that English text displays fine in all browsers and the problem is only with Cyrillic.

    I’ve tried the following solution:
    https://kriesi.at/support/topic/fonts-dont-display-correctly/#post-352694

    I have inserted into my functions.php the following code:

    /*
    REPAIR FONT ISSUES
    */
    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Tenor Sans'] = 'Tenor Sans&subset=latin,cyrillic';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Open Sans'] = 'Open Sans:400,600,800&subset=latin,cyrillic';
    return $fonts;
    }

    But after adding this code and updating font settings in General Styling the font does not show up in ANY browser on ANY system.

    Site: http://swn.com.ua/

    Any idea?

    #461905

    Hey Egorro!

    Thank you for using Enfold.

    Some google web fonts will not work if you didn’t specify the font weight. Try to add this to the Quick CSS field:

    h1, h2, h3, h4, h5, h6, #top .title_container .main-title, tr.pricing-row td, #top .portfolio-title, .callout .content-area, .avia-big-box .avia-innerbox, .av-special-font, .av-current-sort-title, body, body p {
        font-family: "Tenor Sans","HelveticaNeue","Helvetica Neue",Helvetica,Arial,sans-serif;
        font-weight: 400;
    }

    Regards,
    Ismael

    #462010

    Did not work with or without function.php code. Only font weight changes. The mystery is that all browsers show in the inspector that they use Tenor, but they do not.

    #462323

    Hey!

    I just noticed that you’re using cyrillic text, try to add this to the functions.php:

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

    Hard or shift + refresh the page after.

    Cheers!
    Ismael

    #462510

    Guess what? It works! )))
    Not bad for a Monday.

    Thank you, Ismael!

    #462733

    Hey!

    Great, glad you got it working :)

    Regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Google Font works in Chrome only’ is closed to new replies.