-
AuthorPosts
-
June 25, 2019 at 8:48 pm #1113370
Hi guys,
I am struggling with implementing the Google Font Aleo on my side. I to be able to set up the headings 1-6 with that font underneath Enfold–> Styling.
It seemed to work for a while but now again it does not. I have tried Quick CSS codes from you and the net and they dont work.
I would so greatly appreciate some help.
Regards, NataliaJune 26, 2019 at 3:38 pm #1113635Hey SeBaCODEAWAY,
What hve you tried? Give us some details please.
Best regards,
BasilisJune 28, 2019 at 5:01 pm #1114305Hi,
I have tried these quick CSS :h1, h2, h3, h4, h5, h6 { text-transform: none !important; }
h1 {
text-transform: none !important
}
h1.av-special-heading-tag {
text-transform:none !important
}
.avia-menu-text{
font-size:18px!important;
}However I have now deleted the codes just to check if it works that way. Unfortunately it does not work too. I dont know what the issue could be, to me it should work if I have set the font in the genereal styling section as well as in the addiotional one with the h1, h2 etc.
I greatly appreciate the help, Natalia
June 29, 2019 at 12:32 am #1114387so Aleo is not in the set of Enfold implemented choice.
Go to the aleo page: https://fonts.google.com/specimen/Aleoif you click on “select this font” on top right position there will be on the bottom a slide out window.
Click on that little dark gray slide out window. Now you see the implementing options.
You can customize the import options f.e. if you like to have the bold (700) font-style.Standard:
<link href="https://fonts.googleapis.com/css?family=Aleo&display=swap" rel="stylesheet">
@import rule:
@import url('https://fonts.googleapis.com/css?family=Aleo&display=swap');
or with bold font style:
@import url('https://fonts.googleapis.com/css?family=Aleo:400,700&display=swap');
the last rule could be placed f.e. on your child-theme style.css. ( Dashboard / Appearance / Theme Editor )after that you can use the font for definitions in quick css as:
font-family: 'Aleo', serif;
so f.e.:h1 { font-family: 'Aleo', serif; }
On GDPR Reasons it might be better to load the font locally.
Enfold got some Options for that:
All is said on f.e.: https://kriesi.at/documentation/enfold/typography/#register-additional-google-fonts-for-theme-optionsif you like to have the newly added font in Enfold Font Choice you can do that via a littel snippet for child-theme functions.php:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Aleo'] = 'Aleo:400,700&display=swap'; return $fonts; } add_filter( 'avf_available_google_fonts', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Aleo'] = 'Aleo:400,700&display=swap'; return $fonts; }
the font will be on the font list on the bottom of the lists.
June 29, 2019 at 7:37 pm #1114493Hi SeBaCODEAWAY,
Did you manage to get it working with Guenni007’s help or do you need more help?
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.