Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #528600

    Good Afternoon,

    Kindly help me with the code if i want to install google fair “Playfair Display” into my fonts

    Thank you

    • This topic was modified 8 years, 5 months ago by kimogroup.
    #528952

    Hey kimogroup!

    Thank you for using Enfold.

    Please follow the instructions here: http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/

    Regards,
    Ismael

    #529180

    Good Afternoon
    The Font doesnot work

    Google font: Playfair DIsplay

    • This reply was modified 8 years, 5 months ago by kimogroup.
    #529997

    Hi!

    try this code without the “+” instead:

    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Playfair Display'] = 'Playfair Display:400,400italic,700';
    $fonts['Playfair Display'] = 'Playfair Display:400,400italic,700';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    
    $fonts['Playfair Display'] = 'Playfair Display:400,400italic,700';
    $fonts['Playfair Display'] = 'Playfair Display:400,400italic,700';
    return $fonts;
    }
    

    Cheers!
    Andy

    #530011

    Thanks Andy,

    I have add the font but it does not show up in any of the font drop down to select.

    Thank you

    #530020

    Hi!

    Please edit functions.php, find this code on line 16:

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

    Below this add this new code instead:

    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Playfair Display'] = 'Playfair Display:400,400italic,700';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    
    $fonts['Playfair Display'] = 'Playfair Display:400,400italic,700';
    return $fonts;
    }
    

    Hope this will work for you now.

    Best regards,
    Andy

    #530041

    the code on line 16 has the same thing i have to replace with

    #530046

    Hey!

    not sure what you mean. Did you add the new code below line 16? does it work for you?

    Best regards,
    Andy

    #530089

    thank you

    #530095

    Hey!

    you are welcome and glad it is working for you.

    Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.

    Best regards,
    Andy

    #530097

    I have created categories as a menu , i want to have it with a different color buttons,

    Please help with it

    and image has been attached

    Thank you

    #530102

    Hi!

    as I said: open a new ticket for a new question. Thank you.

    Best regards,
    Andy

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Google Font’ is closed to new replies.