Hello
I would like to set a specific font at a specific place (Easy Slider large) and all H1/H2/H3 parts. I want to set the “Montserrat” font with the specific style : “thin”.
The link of the font (I want the “thin” style) link it’s on this website : https://www.la-divine-comedie.com/ (Le plus grand jardin privé d’Avignon vous accueille …)
https://fonts.google.com/specimen/Montserrat
Right now, I can only set the font without its specific style.
How can I proceed ?
Hey Cthulhus,
Thank you for using Enfold.
You should register that font first before applying it to the text or heading using css.
Here’s how: https://www.wpexplorer.com/google-fonts-wordpress/
Best regards,
Ismael
Hello !
It’s already in Enfold as default Google font. So the question is, how chose only the “Thin” style ? I don’t have the option.
Thanks
Hey!
Thanks for the update.
The “Montserrat” font in the theme only contains the regular or default style, so you have to register the other. You can also use the following filter to override the default font value.
add_filter( 'avf_available_google_fonts', 'avf_available_google_fonts_mod');
function avf_available_google_fonts_mod($fonts)
{
$fonts['Montserrat'] = 'Montserrat:100,300,400,700';
return $fonts;
}
Best regards,
Ismael
Ha ok, now I understand ! Thanks for the code and the update !
Appreciate !
Thanks Ismael
Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon