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

    Hi there,

    Please see development site for NeoNailS.

    The client wants to use a Google Font for headings which is not listed in your theme options, that is Rock Salt. I have followed the instructions in your documentation and changed the code for Rock Salt. I have tried different options for the name & family of this font, but nothing works. It still doesn’t show up in the theme options… :-(

    The code I have now added in the themes function.php is:

    
    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Rock Salt'] = 'Rock Salt:latin';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    
    $fonts['Rock Salt'] = 'Rock Salt:latin';
    return $fonts;
    }
    

    Please advise what to do!

    Thanks & regards,
    Monique

    #477832

    Hey Monique!

    Try this.

    $fonts['Rock Salt'] = 'Rock Salt:400';
    

    And make sure it’s in the child theme functions.php file.

    Cheers!
    Elliott

    • This reply was modified 9 years, 4 months ago by Elliott.
    #477864

    Hi Elliot,

    Thanks for your reply!

    I guess you mean:

    
    $fonts['Rock Salt'] = 'Rock Salt:400';
    

    Why do you say the “child theme functions.php”? In case I am not using a child theme I suppose I can add this code to the theme’s functions.php!?

    Thanks & regards,
    Monique

    #477918

    Hey!

    Yeah that. :)

    If I remember right there is a certain area in the parent functions.php file you have to add it. Around line 23 or something like that.

    In the child theme it does not matter where you place it, http://kriesi.at/documentation/enfold/downloads/, just add it at the bottom of the file.

    Regards,
    Elliott

    #477961

    Hi Elliott,

    That line 23 did the trick :-)

    Thanks a lot,
    Monique

    #478190

    Hi!

    Glad we could help :-)

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Additional Google Font won't show up’ is closed to new replies.