Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #164691

    Hello,

    I want to use some custom fonts with my website, how can I do that?

    I want them to be displayed at the styling Heading Font and inside the posts.

    Thank you.
    Fabiana

    #164722

    Hi faterra!

    What font are you trying to use? If it is a google font, you can edit functions.php and find this code:

    if(isset($avia_config['use_child_theme_functions_only'])) return;
    

    Below, add this code:

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Alef'] = 'Alef';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Alef'] = 'Alef';
    return $fonts;
    }

    Replace “Alef” with the google font you’re trying to use.

    Best regards,
    Ismael

    #164788

    Hi Ismael,

    Thanks for your response. I am still choosing, but it will definitely be one of google fonts.

    I´ll let you know how it worked out.

    Regards,
    Fabiana.

    #165416

    Glad Ismael could help. Let us know if you have any other questions or issues.

    Regards,

    Devin

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Custom Fonts’ is closed to new replies.