Tagged: Fonts, google font
Hello,
I’d like to add the google font Oxygen for default Heading Font & body text. How can I do this? Thank you!
Hey!
See Peter’s response here:
https://kriesi.at/support/topic/adding-google-fonts-3/#post-175612
Regards,
Josue
Thanks, I tried to add the below code to my functions.php but I don’t see it in the list of fonts to pick from still. Any ideas? Did I miss something? Thanks!
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Open Sans’] = ‘Open Sans:400&subset=latin,latin-ext’;
$fonts[‘Oxygen’] = ‘Oxygen:400&subset=latin,latin-ext’;
return $fonts;
}
add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘Open Sans’] = ‘Open Sans:400&subset=latin,latin-ext’;
$fonts[‘Oxygen’] = ‘Oxygen:400&subset=latin,latin-ext’;
return $fonts;
}
Hey!
I’m not sure why the filter is not working but you can still add the font. Edit includes > admin > register-admin-options.php then find this code on line 289:
'Yellowtail'=>'Yellowtail',
Below, add this code:
'Oxygen'=>'Oxygen:400&subset=latin,latin-ext'
Again, find this code on line 321:
'Lora'=>'Lora',
Below, add this code:
'Oxygen'=>'Oxygen:400&subset=latin,latin-ext'
Remove browser cache then reload the dashboard.
Best regards,
Ismael
thanks, that did the trick!