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

    Hey guys,

    I have another little question referred to:
    https://kriesi.at/support/topic/google-fonts-without-child-theme/

    Is there an option to just add the italic version of the new added google font?
    ‘Cause when I change the font f.e. for the header/menu it appears in “regular”
    and there is no option to switch to the italic version.
    But I won’t need the regular version, so I thought maybe if I (or, to be honest: you)
    add only the italic version, it appears cursive everywhere. :)

    #519020

    Hi coeval,

    What font are you looking to add? Is it available in italic?

    Best regards,
    Rikard

    #542281

    I would like to add this one: Arapey (Normal 400 Italic)
    https://www.google.com/fonts/specimen/Arapey

    #542290

    Hi!

    Please change this code – https://kriesi.at/support/topic/google-fonts-without-child-theme/#post-517832
    to following one

    function avia_add_custom_font($fonts)
    {
    $fonts['Alef'] = 'Alef:400,700';
    $fonts['Arapey'] = 'Arapey:400italic';
    return $fonts;
    }
    
    add_filter( 'avf_google_heading_font',  'avia_add_custom_font');
    add_filter( 'avf_google_content_font',  'avia_add_custom_font');

    Best regards,
    Yigit

    #542424

    Hey Yigit,
    for the content font it works well, the heading font is still “regular” if I use Arapey, but that’s no problem for me,
    cause I only need the italic version for the content.

    But I have another question related to the google fonts:
    I have another domain called mundzumund.org, where I use enfold.
    I tried to add a google font called Euphoria Script for this website.
    At first I added the code to wp-content/themes/enfold/functions.php without any success.
    Then I downloaded all data from coeval and searched for the right functions.php.
    I found out that I have to place the code in plugins/functions.php,
    but my other domain mundzumund.org doesn’t have the functions.php in this folder,
    so I duplicated the one from coeval and added it to the plugins folder from mundzumund,
    again without any success.
    Would you mind to help me out again in this case?
    I think I’m to stupid to add google fonts on my own.

    #542462

    Hi!

    I have added the code to your functions.php file. It was adding + between font name for some reason so i applied it to your elements custom CSS code in Quick CSS field. Please review your website now

    Best regards,
    Yigit

    #542478

    Thx a lot. It works perfect now. :)

    #542514

    Hi!

    You are welcome Danny, glad we could help :)
    Let us know if you have any other questions or issues!

    Best regards,
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘add only the italic version of a google font’ is closed to new replies.