HI,
I would like to add the following font to my theme
https://fonts.google.com/specimen/Crimson+Text
I already have the following in my functions.php
function avia_add_google_fonts() {
wp_enqueue_style( ‘avia-google-fonts’, ‘https://fonts.googleapis.com/css?family=Roboto+Slab:400,700,300,100’, false );
}
add_action( ‘wp_enqueue_scripts’, ‘avia_add_google_fonts’ );
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts) {
$fonts[‘Helvetica’] = ‘Helvetica’;
return $fonts;
}
where/how do I add the Crimson Text to this list?
my site – http://staging.wsmsnyc.org.s167849.gridserver.com/
Hey navindesigns,
Please add following code to functions.php file
add_filter( 'avf_google_heading_font', 'avia_add_heading_font_new');
function avia_add_heading_font_new($fonts)
{
$fonts['Crimson Text'] = 'Crimson Text:400,700,400italic,700italic';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font_new');
function avia_add_content_font_new($fonts)
{
$fonts['Crimson Text'] = 'Crimson Text:400,700,400italic,700italic';
return $fonts;
}
Best regards,
Yigit
ok i apologize
you guys rock!