Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1109053

    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 ?

    #1109486

    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

    #1109581

    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

    • This reply was modified 3 months, 1 week ago by  Cthulhus.
    #1109651

    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

    #1109764

    Ha ok, now I understand ! Thanks for the code and the update !
    Appreciate !

    Thanks Ismael

    #1109776

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Set a specific font on H1/H2/H3 + style on H1/H2/H3’ is closed to new replies.