Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #166734

    Hi guys,

    I read this: https://kriesi.at/support/topic/new-custom-font/
    What if I want to add more than 1 font? What would the code be?

    Any chance you guys will add a boatload of Google fonts so we don’t have to go thru this?

    Thanks!
    Tim

    #166980

    Hey timfl!

    If you want to add more than one google font, the code should look like this:

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Alef'] = 'Alef';
    $fonts['Roboto'] = 'Roboto';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Alef'] = 'Alef';
    $fonts['Roboto'] = 'Roboto';
    return $fonts;
    }

    Regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Adding Google Fonts (plural)’ is closed to new replies.