Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #648599

    Hello,

    I would like to use “Karla” font, is this code correct:

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘Karla’] = ‘karla:400,400italic,700,700italic’;
    return $fonts;
    }

    add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
    function avia_add_content_font($fonts)
    {

    $fonts[‘Karla’] = ‘karla:400,400italic,700,700italic’;
    return $fonts;
    }

    Thank you so much

    #648605

    Hi SkinnovationIBK!

    Yes, your code is correct. If you are not using a child theme, please go to Appearance > Editor and open functions.php file and find following line near top

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

    and add your code right below it

    Cheers!
    Yigit

    #648611

    Hi Yigit,

    I’m using a child theme and I added the code in functions.php
    Now I can see karla in the fonts list, but it looks deference font when I use it??!!
    Did I made something wrong?

    Thanks,

    #648615

    Hi,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    Login credentials include:

    • The URL to the login screen.
    • A valid username (with full administration capabilities).
    • As well as a password for that username.
    • permission to deactivate plugins if necessary.

    Best regards,
    Yigit

    #648616

    I solved it :)
    In the code I should write the first letter of the font name in capital letter.
    Thank you so much.

    #648621

    Hi,

    Glad you figured it out!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘adding "Karla" font’ is closed to new replies.