-
AuthorPosts
-
March 5, 2019 at 10:51 am #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
CharlotteMarch 5, 2019 at 11:37 am #1074792Hey 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,
NikkoMarch 5, 2019 at 12:06 pm #1074814Thanks :)
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
CharlotteMarch 5, 2019 at 12:12 pm #1074824Hi 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,
NikkoMarch 5, 2019 at 12:18 pm #1074827Thanks Nikko.
Sorry to bother you about that! I could have change the numbers before I sent my question!
Cheers
CharlotteMarch 5, 2019 at 12:19 pm #1074832Hi 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,
NikkoMarch 7, 2019 at 8:22 am #1075846HI 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
EmmyMarch 7, 2019 at 3:51 pm #1076022Hi 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,
NikkoMarch 10, 2019 at 4:47 pm #1077036non of the above worked and I have tried on two different enfold websites :) not sure what I am doiung wrong.
ThanksMarch 10, 2019 at 10:25 pm #1077135Hi,
@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,
MikeMarch 10, 2019 at 10:27 pm #1077142Hi Mike I have opened a whole new topic about the whole issue :) and I have included my login.
:)
thanksMarch 11, 2019 at 1:32 am #1077169Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.