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
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