Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #213618

    I see there are less than 50 fonts for the body text. How can I add all of the Google fonts to the list? Also, how can change the font size to the body and headings. My URL is http://www.headmenco.com.

    #213641

    Hi mrtechnique!

    You can use this filter on functions.php to add 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:400,600,800';
    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:400,600,800';
    return $fonts;
    }

    Replace Source Sans Pro with the font that you want. Which headings are you trying to change? You can use this for the body font:

    body, body p {
    font-size: 15px;
    }

    Cheers!
    Ismael

    #216410

    Does this code in the function.php get overwritten on an update? If now, why not?

    #216417

    Hi!

    Yes it will, but you can use child theme. Please see http://kriesi.at/documentation/enfold/using-a-child-theme/

    Regards,
    Yigit

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