Tagged: Fonts, google font
Hi,
I try to add a new google font to my enfold child theme.
I’m using this code in my functions.php:
/*############# Alex Brush Google Font #############*/
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Alex Brush'] = 'Alex+Brush:400';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Google fonts']['Alex Brush'] = 'Alex+Brush:400';
return $fonts;
}
The font is selectable in the font settings tab at the bottom of the list. But it will not change on the site. But when I check with developer tools it shows m the font on frontpage: https://screencast.com/t/SAbnxtEC8l
I’ve also tried to download the font using quick css section in the dashboard:
@import url(‘https://fonts.googleapis.com/css?family=Alex+Brush’);
Any help is highly appreciated.
Thanks,
Dirk
Hey founduhere,
Thanks for the login details, could you try to remove the + between Alex and Brush to see if that helps?
Best regards,
Rikard
Hi Rikard,
I’ve already tried to remove that without success :(
Thanks,
Dirk
Hi,
I adjusted your code a bit and then went to Enfold theme options > Advanced Styling and edited “Slideshow titles” and chose to display Alex Brush font and it worked. Please refresh your page and review your website :)
Best regards,
Yigit
Hi,
great :)
Thank you very much. Really awesome support.
Dirk
Hi,
You are welcome! :)
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)
Best regards,
Yigit