Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Add new google fonts to Enfold Theme #923939

    Hi, Sorry to hijack this thread, but i am having the same problem. I’m seeing the same snippet of code in this forum for adding extra google fonts, but the code is not working for me.

    I’m not using a child theme, just using the Enfold theme out the box.

    //Google Fonts

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘Source Sans Pro’] = ‘Source Sans Pro:300,300i,400,400i,600,600i,700,900’;
    return $fonts;
    }

    add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
    function avia_add_content_font($fonts)
    {
    $fonts[‘Source Sans Pro’] = ‘Source Sans Pro:300,300i,400,400i,600,600i,700,900’;
    return $fonts;
    }

    Above not working. Any reason why you would not just add all google fonts to begin with?

    **EDIT** I see the font now in the Headings and Body Content. I wanted to use the font in the Small bar above Main Menu. How would i add to that?

    • This reply was modified 6 years, 8 months ago by Basilis.
Viewing 1 post (of 1 total)