Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #696117

    Hi,

    I am trying to add a Google font (Caveat Brush), using the following code from the FAQ:

    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Caveat Brush'] = 'Caveat+Brush';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    
    $fonts['Caveat Brush'] = 'Caveat+Brush';
    return $fonts;
    }

    I also tried it without the + but it does not show up in my fonts list.

    Any ideas what I am doing wrong?

    Thanks in advance

    #696333

    Hey Artiarturro_66,

    I can see the font in both lists, it’s being added at the very end of each list.

    Regards,
    Rikard

    #696351

    Hi Rikard,

    how embarrassing! Because there is also a font named “Caveat” I was looking for “Caveat Brush” only right above and below that.

    Thank you very much!
    Arti

    #696413

    Hi,

    Glad we could help!
    We really appreciate it if you rate our theme on themeforest .
    To know more about enfold features please check – http://kriesi.at/documentation/enfold/
    Thank you for using Enfold :)

    Best regards,
    Vinay

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Trying to add a google font’ is closed to new replies.