Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1300817

    I am using the google font Raleway as the font for a site I am building.

    I have selected it in Enfold Child > General Styling > Fonts as well as selecting some specific weights for H1 and H2. Those weights are not showing properly.

    I have also attempted to force the weight via CSS using “!important” to no avail.

    Lastly, I added the code below to the functions.php file. What can I do to get Enfold to recognize all weights for Raleway?

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Raleway'] = 'Raleway:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic';
    return $fonts;
    }
    //
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Google fonts']['Raleway'] = 'Raleway:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic';
    return $fonts;
    }
    #1301127

    Hey LesleyJean,

    Thank you for the inquiry.

    In the filter above, try to rename the font to something else (e.g., “Raleway New”, “Raleway Mod”), then select the new font name in the Enfold > General Styling > Fonts panel. You can also adjust the style of the elements in the Enfold > Advanced Styling panel.

    Best regards,
    Ismael

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