Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #455635

    Hi,

    How do I install a Google font into the enfold theme?

    Can I use Google Fonts to replace the Navigation font as well as the body and heading font?

    #455637

    Is there also a way of using a custom google font in layerslider? if so then how do I implement?

    #455880

    Hi!

    Please add this to your child themes functions.php:

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Source Sans Pro'] = 'Source Sans Pro:400,600,800';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Source Sans Pro'] = 'Source Sans Pro:400,600,800';
    return $fonts;
    }

    Change the Source Sans Pro font with the font you’re trying to use.

    Cheers!
    Rikard

    #456071

    Will this php also allow me to ad a custom Font to the Navigation menus and the layer-slider?

    #456241

    Hi!

    Yes, you can target the navigation font in Dashboard > Enfold > Advanced Styling > Main Menu Links.

    As for the LayerSlider, what elements are you using? As an example you could change the H5 or H6 elements in the same area and then use those in the LayerSlider.

    Regards,
    Elliott

    #457058

    Hi Elliot,

    Thank you for getting back to me. I am looking to edit the text headings in the Layer Slider yes.

    #457115

    Hi,

    If you are using an element that’s “editable” in Enfold > Advanced Styling (for example h1, h2, h3, h5, h6) you should be able to select the Font there and it will apply to LayerSlider.

    Cheers!
    Josue

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