Hi,
I’m wanting to use Raleway 400,500,600 weights:
paragraph – raleway 500;
h1 {
font-family: ‘Raleway’, san serif;
font-size: 20px;
line-height: 23px;
font-weight: 500;
color: #a37908;
}
h2 {
font-family: ‘Raleway’, san serif;
font-size: 14px;
line-height: 16px;
font-weight: 600;
color: #a37908;
}
I’ve added this into functions.php as above but not sure how to set the rest.
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Raleway’] = ‘Raleway:400,500,600’;
return $fonts;
}
add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘Raleway’] = ‘Raleway:400,500,600’;
return $fonts;
}
Thanks!
Hi sineadh!
After adding the code to functions.php file, you should be able to find Raleway font in fonts dropdown list in Enfold theme options under Styling tab. However, in your custom CSS code i see typo in font family. Please correct them as following
font-family: 'Raleway', sans-serif;
Regards,
Yigit
Great.
How do I add different font weights and text sizes to h1 & h2?
I’d like
h1 – Raleway 600, font size 20px
h2 – Raleway 500, font size 14px
thanks :)