Tagged: devin-docs
Hello,
I want to use some custom fonts with my website, how can I do that?
I want them to be displayed at the styling Heading Font and inside the posts.
Thank you.
Fabiana
Hi faterra!
What font are you trying to use? If it is a google font, you can edit functions.php and find this code:
if(isset($avia_config['use_child_theme_functions_only'])) return;
Below, add this code:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Alef'] = 'Alef';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Alef'] = 'Alef';
return $fonts;
}
Replace “Alef” with the google font you’re trying to use.
Best regards,
Ismael
Hi Ismael,
Thanks for your response. I am still choosing, but it will definitely be one of google fonts.
I´ll let you know how it worked out.
Regards,
Fabiana.
Glad Ismael could help. Let us know if you have any other questions or issues.
Regards,
Devin