Tagged: google fonts
Hello! I want to add a Google fonts. I’ve added the following code at the end of the functions.php but it doesn’t appear in the Fonts>Dropdown. What is wrong?
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Poppins’] = ‘Poppins:300,400,500,600,700’;
return $fonts;
}
add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘Poppins’] = ‘Poppins:300,400,500,600,700’;
return $fonts;
}
Hey CharlieBarey,
Please send us a temporary admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
Rikard
Here it goes!
Hi,
Ive checked your dashboard and you need to set me Administrator permissions because I can
t see all the menu. I think that it`s easier if you use this plugin https://wordpress.org/plugins/wp-google-fonts/ to add any google font.
Best regards,
John Torvik
I tried with the plugin, but the Poppins font doesn’t appear,
You have permission now!
Hey!
I edited functions.php file in Appearance > Editor and moved your code below following line
if(isset($avia_config['use_child_theme_functions_only'])) return;
Please review your website now
Regards,
Yigit
Hi:
I want to use the Poppins font too… I’ve downloaded it from Google Fonts, but when I try to upload I get the error message ” Couldn’t add the font because the server didn’t respond” it is in the media library, but cannot get into enfold. What causes this error?
Hi Eleina_Shinn,
Do you have the PhpZip extension enabled on the server?
Best regards,
Victoria