-
AuthorPosts
-
June 18, 2015 at 6:09 pm #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-352694I 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?
June 19, 2015 at 2:23 pm #461905Hey 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,
IsmaelJune 19, 2015 at 4:00 pm #462010Did 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.
June 21, 2015 at 12:04 pm #462323Hey!
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!
IsmaelJune 22, 2015 at 9:46 am #462510Guess what? It works! )))
Not bad for a Monday.Thank you, Ismael!
June 22, 2015 at 1:27 pm #462733 -
AuthorPosts
- The topic ‘Google Font works in Chrome only’ is closed to new replies.