Tagged: 

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

    Hi There
    Been trying to follow a few threads on adding google fonts, mainly: https://kriesi.at/support/topic/add-new-font/#post-234710
    https://www.google.com/fonts#UsePlace:use/Collection:Rokkitt

    With no success. Can you help? I still do not see the font listed n the pull down menu for Fonts
    I added the code to my functions file:

    
    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Rokkitt'] = 'Rokkitt:400,700';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Rokkitt'] = 'Rokkitt:400,700';
    return $fonts;
    }
    
    #518834

    Hi reddishpinkmedia!

    Setup a child theme, http://kriesi.at/documentation/enfold/downloads/, and add it to the functions.php of the child theme. If it still does not work then send us a WordPress login and we’ll take a look.

    Regards,
    Elliott

    #519369

    OK! That worked! But now how do I get it to show in my theme as right now it is the Child theme?

    #519373

    Oh nevermind, I see the import settings feature. Very nice!!

    #519378

    How do we add a second font?

    #519390

    Hey!

    You can change the code to following one

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Rokkitt'] = 'Rokkitt:400,700';
    $fonts['Other-font'] = 'Other-font:400,700';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Rokkitt'] = 'Rokkitt:400,700';
    $fonts['Other-font'] = 'Other-font:400,700';
    return $fonts;
    }

    Cheers!
    Yigit

    #557332

    Hello,

    I entered in the code provided above in the functions.php child theme, however the fonts are not showing in the styling dropdowns.

    I entered it exactly as listed above. Is there another step that i’m missing?

    #557534

    Hey!

    Did you make sure to change “Other-font” with the actual font you want to include?

    Cheers!
    Elliott

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.