Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #23166


    I want to connect a custom font that supports Cyrillic characters, for example, PT Sans.

    My actions:

    1) I got the code from Google and put it in header.php. See screenshot:

    2) Set Heading Font to “No custom font”

    3) Add new style properties(as Google says). See screenshot:

    But it does not work. What’s the problem?

    Thank you!



    Refer to this link (Purchase code hidden if logged out) -on-abundance. The only difference is on the register-admin-options.php

    $avia_elements[] =		array(	"name" 	=> "Heading Font",
    "slug" => "styling",
    "desc" => "The Font heading utilizes google fonts and allows you to use a wide range of custom fonts for your headings",
    "id" => "google_webfont",
    "type" => "select",
    "no_first" => true,
    "class" => "av_2columns av_col_1",
    "onchange" => "avia_add_google_font",
    "std" => "Open Sans",
    "subtype" => apply_filters('avf_google_heading_font', array('no custom font'=>'',




    'Dancing Script'=>'Dancing Script',
    'Droid Sans'=>'Droid Sans',
    'Droid Serif'=>'Droid Serif',

    'EB Garamond'=>'EB Garamond',

    'Fjord One'=>'Fjord One',


    'Josefin Sans' => 'Josefin Sans',
    'Josefin Slab'=>'Josefin Slab',


    'League Script'=>'League Script',

    'Mate SC'=>'Mate SC',

    'News Cycle'=>'News Cycle',

    'Open Sans'=>'Open Sans:400,600',

    'PT Sans'=>'PT Sans',



    'Signika Negative'=>'Signika Negative',

    'Terminal Dosis'=>'Terminal Dosis',
    'Tenor Sans'=>'Tenor Sans',

    'Varela Round'=>'Varela Round',



    $avia_elements[] = array( "name" => "Defines the Font for your body text",
    "slug" => "styling",
    "desc" => "Choose between web save fonts (faster rendering) and google webkit fonts (more unqiue)",
    "id" => "default_font",
    "type" => "select",
    "no_first" => true,
    "class" => "av_2columns av_col_2",
    "onchange" => "avia_add_google_font",
    "std" => "Helvetica-Neue,Helvetica-websave",
    "subtype" => apply_filters('avf_google_content_font', array( ':: :: Web save fonts :: ::'=>'',
    'Helvetica Neue'=>'Helvetica-Neue,Helvetica-websave',
    ':: :: Google fonts :: ::'=>'',
    'Droid Sans'=>'Droid Sans',
    'Droid Serif'=>'Droid Serif',
    'Maven Pro'=>'Maven Pro',
    'Open Sans'=>'Open Sans:400,600',


    Another way is to use a this plugin




    Thanks for the fast reply, Ismael

    I’d like to use first way, without additional plugins.

    But it doesn’t work.

    What i did:

    1) Generate Cufon js font file here: and at the fifth input field from the top with the label: “Use the following value as the font-family of the generated font (optional)” enter the word “cufon” (without quotation marks).

    2) Then place the cufon file into the enfoldframeworkjsfonts folder

    3) Open up enfoldincludesadminregister-admin-options.php and add font to the font array. I put the font in 2 places:


    $avia_elements[] = array( “name” => “Heading Font”,

    “subtype” => apply_filters(‘avf_google_heading_font’, array(‘no custom font’=>”,


    AND HERE:____________________________________________________________

    $avia_elements[] = array( “name” => “Defines the Font for your body text”,

    “subtype” => apply_filters(‘avf_google_content_font’, array( ‘:: :: Web save fonts :: ::’=>”,

    ‘:: :: Google fonts :: ::’=>”,



    I also tried to write file name without extension, like this:



    I’m sorry but it seems like Ismael mixed something up. Enfold doesn’t support Cufon but only google fonts. You can use filters to add them to the font list – see: (Purchase code hidden if logged out)

    Note that you can only use a font from the google font api:


    Dude, I want to install PT Sans font with cyrillic sybbols. I added filter like this:


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

    /*custom font

    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;

    I put the following code into header.php:

    <link href=',cyrillic' rel='stylesheet' type='text/css'>

    Where shoud I put this code?:

    font-family: 'PT Sans', sans-serif;

    Also, I shoud “replace “Open Sans” (on both sides) with your cyrillic font.”And how would look like this line in filter?:

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



    Actually it’s much easier:

    1) use following code:

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    $fonts['PT Sans'] = 'PT Sans:400,700,400italic,700italic&subset=cyrillic';
    return $fonts;

    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    $fonts['PT Sans'] = 'PT Sans:400,700,400italic,700italic&subset=cyrillic';
    return $fonts;

    2) Go to Enfold > Styling and select the PT Sans font from the dropdowns.

    Enfold will automatically load the right stylesheet and change the font family for you.


    Thank you very much! Now it finally works!



    Great :)



Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Custom font with cyrillic symbols’ is closed to new replies.