Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #321898

    Hey Guys, I want to install a new Google font (Titillium Web) to Enfold for the headers but I don’t know where to install it? Would appreciate your help.:-)))

    #322349

    Hey!

    Try adding this at the very end of your theme functions.php file:

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

    Cheers!
    Josue

    #323687

    Thanks Josue…. I added the script to my functions.php file as you suggested and changed the setting in the theme styling for both headers and general body text to “Titillium Web” but on screen the font doesn’t look any different??
    http://god-dag.dk/

    #323835

    Hi!

    Try with this code instead:

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

    Cheers!
    Josue

    #324305

    Thanks Josue, it worked… now client will be happy!!:-)

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Installing a new Google font’ is closed to new replies.