Tagged: google font
Hi,
On the website https://www.crkl.eu/ I use “Karmina” as main font. This is a google-font.
In my childtheme (CRKL) i wrote this code
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Karmina'] = 'Karmina';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Karmina'] = 'Karmina';
return $fonts;
}
On my mac, the font is displayed as it should.
But on smartphone, tablets and pc, the font is replaced by another font.
What could be the problem?
Hey creatorke,
It’s not displaying on my end on desktop either so that means you likely have the font installed on your local computer. Please try to upload the font under Enfold->Import/Export to see if that works better. Make sure that the code you added is removed or commented out before doing that.
Best regards,
Rikard