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

    I managed to include an Adobe Typekit font via this code:

    
    <?php
    add_action( 'init', 'enfold_customization_swtich_fonts' );
    function enfold_customization_swtich_fonts() {
        global $avia;
        $avia->style->print_extra_output = false;
    }
    
    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    	$fonts['Minion Pro'] = 'Minion Pro';
    	return $fonts;
    }
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    	$fonts['Minion Pro'] = 'Minion Pro';
    	return $fonts;
    }
    

    But now I want to include two more fonts from AT. Any idea of how to do this via the above method?

    Best regards,
    Harry

    #1001155

    Hey harryriegel,

    Try adding another font like this

    
    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    	$fonts['Minion Pro'] = 'Minion Pro';
            $fonts['AnotherFont'] = 'AnotherFont';
    
    	return $fonts;
    }
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    	$fonts['Minion Pro'] = 'Minion Pro';
            $fonts['AnotherFont'] = 'AnotherFont';
    
    	return $fonts;
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

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