Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #760381

    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;
    }

    #761101

    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

    #761507

    Here it goes!

    #761630

    Hi,

    Ive checked your dashboard and you need to set me Administrator permissions because I cant 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

    #761691

    I tried with the plugin, but the Poppins font doesn’t appear,
    You have permission now!

    #761961

    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

    #1183202

    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?

    #1183266

    Hi Eleina_Shinn,

    Do you have the PhpZip extension enabled on the server?

    Best regards,
    Victoria

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.