Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #636097

    I would like to add the Roboto Condensed font to the Enfold theme.

    I used this method and added code to my functions.php in my child theme:

    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’;
    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’;
    return $fonts;
    }

    Google Fonts says to use Roboto+Condensed, and I tried with the + and without

    When the font is added, it appears to work for most content, but on headings it’s not working properly, but if inspect element and remove the +, then the font works.

    Not sure what the correct implementation is, or what I might be doing wrong.

    #636102

    Everything seems to be working now. I am going to assume that it was some type of caching issue.

    #636140

    Hi,

    Yes it must have been caching issue. I checked again and all seem to be fine :)

    Thank you for using Enfold.

    Best regards,
    Vinay

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Adding More Google Fonts’ is closed to new replies.