Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #697108

    Hi,

    After updating to the latest enfold and wordpress versions, i can no longer add additional google fonts via functions.php.

    Here is the code i had:

    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    
    $fonts['Titillium Web'] = 'Titillium Web:300,300italic,400,400italic,700,700italic:latin';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    
    $fonts['Titillium Web'] = 'Titillium Web:300,300italic,400,400italic,700,700italic:latin';
    return $fonts;
    }
    #697134

    Hey Transformers Universe,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    Login credentials include:

    • The URL to the login screen.
    • A valid username (with full administration capabilities).
    • As well as a password for that username.
    • permission to deactivate plugins if necessary.

    Best regards,
    Vinay

    #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 ago by Basilis.
    #924114

    Hi,

    I removed your info for security reasons.
    Please create a new ticket.

    Best regards,
    Basilis

    #946964

    Hi! Same issue, is there a resolution? Thanks!

    #947730

    Hi Green Beans Creative,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #947731

    Hi jimmscc,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #947733

    Hi Transformers Universe,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #949567

    Try this in your child theme functions file instead…

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($google_fonts)
    {
    $google_fonts['Your Font Here'] = 'Your Font:300,400 etc';
    return $google_fonts;
    }

    (Obviously change the ‘your font’ text depending on which Google font you need to add)

    • This reply was modified 5 years, 10 months ago by Dunc R.
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.