Hi there,
I’d like to change my headings to the Google Font – ‘Ubuntu’.
I’ve followed this thread:
And used this code in the functions.php file:
<?php
/*
* **** Functions file
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Ubuntu Regular 400’] = ‘Ubuntu Regular:400’;
$fonts[‘Ubuntu Bold 700’] = ‘Ubuntu Bold:700’;
return $fonts;
}
add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘Google fonts’][‘Ubuntu Regular 400’] = ‘Ubuntu Regular:400’;
$fonts[‘Google fonts’][‘Ubuntu Bold 700’] = ‘Ubuntu Bold:700’;
return $fonts;
}
But it is defaulting to some other font like Arial. Could you please let me know what I’m doing wrong?
Thanks!
Hey Robyone925,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
Best regards,
Yigit