Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1074767

    Hey,

    I want to add this Google font for my headings – https://fonts.google.com/specimen/Abril+Fatface

    How can I do that?

    Best regards
    Charlotte

    #1074792

    Hey Charlotte,

    Add this php code at the bottom of your functions.php:

    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
      $fonts['Abril Fatface'] = 'Abril Fatface';
      return $fonts;
    }

    Then go to Enfold > General Styling > Fonts > Heading Font > then scroll at the bottom of the dropdown and select Abril Fatface and save.

    Best regards,
    Nikko

    #1074814

    Thanks :)

    I have change the font size for H1 H2 H2 to 16px in Advance setting but still the headline is very small.
    http://chichotelsinparis.com/

    Why?

    Best regards
    Charlotte

    #1074824

    Hi Charlotte,

    I have checked your site and it’s reflecting the right font size which is 16px.
    Try setting it to a higher value and it should get bigger.

    Best regards,
    Nikko

    #1074827

    Thanks Nikko.

    Sorry to bother you about that! I could have change the numbers before I sent my question!

    Cheers
    Charlotte

    #1074832

    Hi Charlotte,

    No worries, glad that we could help :)
    Let us know if you need further assistance or if we can close this thread.

    Best regards,
    Nikko

    #1075846

    HI There,
    I have tried the code above as advised but the font didn;t appear under in the drop down menu for header fonts:

    Code added to functions.php :
    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘Saira Semi Condensed’] = ‘Saira Semi Condensed’;
    return $fonts;
    }

    Have also uploaded the font using Import/Export tab ubdwee enfold but says Server not responding.

    Any help please
    thnaks
    Emmy

    #1076022

    Hi Emmy,

    The code seems right but I think the issue is in the single quotes, try using this instead:

    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
      $fonts['Saira Semi Condensed'] = 'Saira Semi Condensed';
      return $fonts;
    }

    Best regards,
    Nikko

    #1077036

    non of the above worked and I have tried on two different enfold websites :) not sure what I am doiung wrong.
    Thanks

    #1077135

    Hi,

    @Emmygraph
    Please include an admin login in the Private Content area of a new thread, since this is not your thread your login info won’t be private here.

    Best regards,
    Mike

    #1077142

    Hi Mike I have opened a whole new topic about the whole issue :) and I have included my login.
    :)
    thanks

    #1077169

    Hi,
    I took a look at your site but I don’t see that you have added the function to your functions.php
    While trying to upload the font you get the error because:

    admin-ajax.php Failed to load resource: the server responded with a status of 403 (Forbidden)

    This looks like a permissions error, or a webhost security / firewall error. Perhaps checking your server log will offer more info on why it is forbidden.

    Best regards,
    Mike

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