Tagged: custom fonts, font, google fonts
I’d like to use custom Google Font because build fonts don’t support Latin Extended letters.
I added this code to quickCSS, but fonts don’t change.
body {
font-family: ‘Monda’, sans-serif;
}
h1 {
font-family: ‘Monda’, sans-serif;
}
h2 {
font-family: ‘Monda’, sans-serif;
}
h3 {
font-family: ‘Monda’, sans-serif;
}
h4 {
font-family: ‘Monda’, sans-serif;
}
h5 {
font-family: ‘Monda’, sans-serif;
}
h6 {
font-family: ‘Monda’, sans-serif;
}
BTW. I’m beginner, so maybe I do something wrong.
Hi,
Open functions.php, find this code on line 2:
global $avia_config;
Below, add the this code:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Monda'] = 'Monda';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Monda'] = 'Monda';
return $fonts;
}
You can now select the font on Enfold > Styling > Heading fonts and Body fonts.
Regards,
Ismael
Almost,
font is added to list, but it not supports Latin Extended letters, they still showing wrong.
Works fine. Thank You