Hi team – I’m trying to load a new Google font into my child theme so that I can call it for the slideshow caption headings.
I’ve followed this thread many times and it works – but this time it won’t.
https://kriesi.at/support/topic/add-new-font/?login_error#post-234710
_________
This is how I’m calling my font in the functions
/* ADDING NEW GOOGLE FONTS */
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Kalam’] = ‘Kalam:400,700’;
return $fonts;
}
Then I’ve called the font in my stylesheet
#top #wrap_all .slideshow_caption h2.avia-caption-title, #top #wrap_all .av-slideshow-caption h2.avia-caption-title {
font-family: ‘Kalam’, cursive !important;
}
However – on the font that’s displaying isn’t the Kalam font – I don’t think the font is loaded properly – do you mind checking if the filter is correct?
This is the Google font I want to call
https://fonts.google.com/specimen/Kalam?selection.family=Kalam:400,700
Cheers
the code above gives you only the chance of using it by activating the font on Enfold/… fonts
if you do not choose the font on Enfold Options the font is still not activated!
One easy way is to activate the font (if you don’t want it by default for all h2) to go to enfold/advanced styling/ and create a rule f.e. for h6 using this font. From than on you can use the font on quick css.
sorry team – I thought I had responded – yes this works now, all the other headings were fine – but I went and used the advanced editor to select ‘slideshow heading’ and assigned my font to this. Heads up – my new font appeared at the very bottom of the list of fonts….
cheers