Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #27226

    I’d like to use custom Google Font because build fonts don’t support Latin Extended letters.

    I added this code to quickCSS, but fonts don’t change.

    body {
    font-family: ‘Monda’, sans-serif;
    }

    h1 {
    font-family: ‘Monda’, sans-serif;
    }
    h2 {
    font-family: ‘Monda’, sans-serif;
    }
    h3 {
    font-family: ‘Monda’, sans-serif;
    }
    h4 {
    font-family: ‘Monda’, sans-serif;
    }
    h5 {
    font-family: ‘Monda’, sans-serif;
    }
    h6 {
    font-family: ‘Monda’, sans-serif;
    }

    BTW. I’m beginner, so maybe I do something wrong.

    #133242

    Hi,

    Open functions.php, find this code on line 2:

    global $avia_config;

    Below, add the this code:

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

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

    You can now select the font on Enfold > Styling > Heading fonts and Body fonts.

    Regards,

    Ismael

    #133243

    Almost,

    font is added to list, but it not supports Latin Extended letters, they still showing wrong.

    #133244

    Hi,

    Have you tried this plugin? http://wordpress.org/plugins/wp-google-fonts/

    Regards,

    Ismael

    #133245

    Works fine. Thank You

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

The topic ‘Using custom Google Font.’ is closed to new replies.