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

    How can we add more fonts (Google fonts) that support cyrilic?

    Thank you.

    #117135

    You can use the avf_google_heading_font and avf_google_content_font filter to add a new font. Insert following code at the bottom of functions.php:

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Open Sans'] = 'Open Sans';
    return $fonts;
    }

    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Open Sans'] = 'Open Sans';
    return $fonts;
    }

    and replace “Open Sans” (on both sides) with your cyrillic font. If you want to add several weights use the write the font name like.

    $fonts['Open Sans'] = 'Open Sans:400,600';

    and Enfold will load the 400 & 600 font weight.

    Afterwards go to the theme options panel and select the new font. Then save the settings.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Google fonts with Cyrilic support?’ is closed to new replies.