Tagged: Fonts, google font
-
AuthorPosts
-
July 6, 2017 at 8:47 am #817090
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,
DirkJuly 6, 2017 at 12:09 pm #817166Hey founduhere,
Thanks for the login details, could you try to remove the + between Alex and Brush to see if that helps?
Best regards,
RikardJuly 6, 2017 at 1:28 pm #817233Hi Rikard,
I’ve already tried to remove that without success :(
Thanks,
DirkJuly 6, 2017 at 1:35 pm #817239Hi,
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,
YigitJuly 6, 2017 at 2:28 pm #817270Hi,
great :)
Thank you very much. Really awesome support.
Dirk
July 6, 2017 at 2:30 pm #817272Hi,
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 -
AuthorPosts
- The topic ‘Adding Google "Alex Brush" Font not working’ is closed to new replies.
