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

    Hi,

    I added a Google font to Enfold theme via functions.php file.

    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    
    $fonts['Roboto Condensed'] = 'Roboto Condensed:300,300italic,400,400italic,700,700italic:latin';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    
    $fonts['Roboto Condensed'] = 'Roboto Condensed:300,300italic,400,400italic,700,700italic:latin';
    return $fonts;
    }

    I go to “Advanced Styling” and select H1 to edit, but under font weight, I can only see “default, normal, bold, light” – however, I can’t see 300, or any of the italic options.

    What is the correct way to set my font-weights when I add a new Google font?

    #639952

    Hey,

    Add those via CSS, paste the following to General Styling > Quick CSS:

    h1{
    font-weight: 300;
    font-style: italic;
    }

    Best regards,
    Josue

    #641847

    OK, that’s what I thought. Just wanted to make sure I was doing it correctly. Thanks for your help!

    #642122

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Adding Google Fonts and accessing the various weights in Advanced Styling’ is closed to new replies.