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

    Hi

    I wonder how can I add more fonts from google into the general styling as the picture shows ?
    pic

    Is it possible if I want to add my own fonts ?

    Thanks

    • This topic was modified 9 years, 4 months ago by almmasy911.
    #348506

    Hey!

    Add this code to your theme / child theme functions.php:

    add_filter( 'avf_google_heading_font',  'add_custom_font');
    add_filter( 'avf_google_content_font',  'add_custom_font');
    function add_custom_font($fonts) {
    	$fonts['Source Sans Pro'] = 'Source Sans Pro:400,600,800';
    	return $fonts;
    }

    Change “Source Sans Pro” by the Google Font you want to use.

    Cheers! 
    Josue

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.