Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #613067

    I’ve checked some solutions offered here and there over this forum but haven’t found any that doesn’t offer modifying theme files. If they are exist please guide me to them. I may be even missed a checkbox (or whatever) that resolves my problem.

    The problem is none of currently offered by Enfold theme Google fonts support Cyrillic, at the same time here is the list of Google fonts that definitely Cyrillic able (order offered by Google, not alphabetical, sorry for that):

  • Seymour One
  • Ubuntu Mono
  • Fira Sans
  • Noto Sans
  • Playfair Display
  • Lora
  • PT Sans
  • Poiret One
  • Andika
  • Fira Mono
  • PT Sans Narrow
  • Tinos
  • Philosopher
  • Neucha
  • Bad Script
  • Istok Web
  • Yeseva One
  • Arimo
  • Rubik
  • Kelly Slab
  • Noto Serif
  • Ubuntu
  • Ruslan Display
  • PT Serif Caption
  • PT Mono
  • Marck Script
  • Tenor Sans
  • Oranienbaum
  • PT Serif
  • Lobster
  • Kurale
  • Russo One
  • Underdog
  • Cousine
  • Ubuntu Condensed
  • EB Garamond
  • Stalinist One
  • Ledger
  • Rubik Mono One
  • Prosto One
  • Anonymous Pro
  • Press Start 2P
  • Forum
  • Rubik One
  • Marmelad
  • Scada
  • Playfair Display SC
  • Didact Gothic
  • Jura
  • Roboto Mono
  • Comfortaa
  • PT Sans Caption
  • Cuprum
  • Play
  • Exo 2
  • Merriweather
  • Roboto Slab
  • Open Sans Condensed
  • Roboto Condensed
  • Roboto
  • Open Sans
  • 32 of them supports Extended Cyrillic.

    Why not to divide Google fonts offered by Enfold theme by supported charsets and enable those charsets directly in Enfold theme settings?

    Also there is no Roboto Condensed font listed at all, but it exists among Google fonts and I like this font. How can I add it (with Cyrillic support) to the list of Google fonts at General Styling > Fonts?

    • This topic was modified 8 years, 8 months ago by Yigit.
    #613511

    Hi kacharava,

    You can add additional Google fonts by following this: http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/

    Best regards,
    Rikard

    #613739

    For all computer-coding-programming related people for some unknown reason is absolutely clear that everyone on the whole Earth just dreams about adding pieces of code to customer ready products.

    You know, guys, you are totally wrong! :)

    #613743

    Hey!

    We are trying to keep the theme as lightweight as possible. That is why we have tutorials prepared in documentation for additional features. If you need help implementing the code, please let us know. You can also request these fonts here – https://kriesi.at/support/enfold-feature-requests/

    Regards,
    Yigit

    #613751

    Is it correct method to add Cyrillic support to the newly added font?

    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Roboto Condensed'] = 'Roboto Condensed&subset=cyrillic,cyrillic-ext,latin,latin-ext';
    $fonts['Roboto Condensed'] = 'Roboto Condensed&subset=cyrillic,cyrillic-ext,latin,latin-ext';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Roboto Condensed'] = 'Roboto Condensed&subset=cyrillic,cyrillic-ext,latin,latin-ext';
    $fonts['Roboto Condensed'] = 'Roboto Condensed&subset=cyrillic,cyrillic-ext,latin,latin-ext';
    return $fonts;
    }
    #613754

    Hey!

    Yes, please try adding the code right below

    
    if(isset($avia_config['use_child_theme_functions_only'])) return;

    in Functions.php file in Appearance > Editor

    Cheers!
    Yigit

    #613778

    Doesn’t work. (

    The following string now appears in all my pages:
    <link rel='stylesheet' id='avia-google-webfont' href='//fonts.googleapis.com/css?family=Roboto+Condensed&subset=cyrillic,cyrillic-ext,latin,latin-ext' type='text/css' media='all'/>
    while Google offers this css link for Roboto Condensed font according to my charsets selected:
    <link href='https://fonts.googleapis.com/css?family=Roboto+Condensed&subset=latin,cyrillic-ext,latin-ext,cyrillic' rel='stylesheet' type='text/css'>
    Basically both strings are the same, I can select Roboto Condensed from both dropdowns in General Styling > Fonts, but the site still appears typed with standard sans seriff font. What is wrong?

    #613790

    Hi!

    Do you mind creating a temporary admin login and posting it here privately?

    Cheers!
    Yigit

    #613791

    I understand the reason, but no, I don’t mind and will never do.
    Lets find another method of making things working.

    #613796

    Hey!

    Please change your code to following one

    function add_subset_func($fontlist) {
    	$fontlist .= "&subset=latin,latin-ext,cyrillic,cyrillic-ext";
    	return $fontlist;
    }
    add_filter('avf_google_fontlist', 'add_subset_func');
    
    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Roboto Condensed'] = 'Roboto Condensed';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Roboto Condensed'] = 'Roboto Condensed';
    return $fonts;
    }

    Cheers!
    Yigit

    #613805

    No change. Still doesn’t work.
    There is reference to Google’s css for Roboto Condensed in the pages code at line #20, but Sans Seriff still used for both headers and body.

    #614092

    Hey!

    Please try using following code in Functions.php file (right below the line i mentioned above)

    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Roboto Condensed'] = 'Roboto Condensed:400,700:latin,cyrillic';
    return $fonts;
    }
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Roboto Condensed'] = 'Roboto Condensed:400,700:latin,cyrillic';
    return $fonts;
    }

    Best regards,
    Yigit

    #614108

    Same result.
    Actually it is clear that I can attach the font to the Enfold theme with all methods offered.
    The problem is it can not be used by css for some reason.

    #614112

    Hey!

    Is it available now in Enfold theme options > General Styling > Fonts and Enfold theme options > Advanced Styling > Main menu links?
    Does not it work when you enter custom CSS as following

    .your-custom-class h1 { font-family: 'Roboto Condensed'!important; }

    (You can enable custom CSS field for ALB elements by referring to this post – http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/)

    Cheers!
    Yigit

    #614113

    Hm… Everything is OK if

    function add_subset_func($fontlist) {
    	$fontlist .= "&subset=latin,latin-ext,cyrillic,cyrillic-ext";
    	return $fontlist;
    }
    add_filter('avf_google_fontlist', 'add_subset_func');
    
    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Roboto Condensed'] = 'Roboto Condensed';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Roboto Condensed'] = 'Roboto Condensed';
    return $fonts;
    }

    is added to the child theme. But no result when applying changes to the main functions.php.

    #614116

    I didn’t alter any CSS file at the moment.
    Yes, the font is available at the very bottom of both font lists with every method offered here.
    But it works only with the child theme.

    #614118

    Hey!

    It is better to apply the changes in child theme as they would be overwritten when you update the theme if you kept the code in functions.php file of your parent theme.
    You can go to Enfold theme options and import “parent theme options” after activating child theme

    Regards,
    Yigit

    • This reply was modified 8 years, 8 months ago by Yigit.
    #618543

    Thanks a lot.
    No more questions regarding this matter.

Viewing 18 posts - 1 through 18 (of 18 total)
  • The topic ‘No Cyrillic support for Google fonts by default in Enfold theme. Why?’ is closed to new replies.