Tagged: google fonts
-
AuthorPosts
-
June 15, 2017 at 10:23 pm #808722
Hi! This is in reference to the closed thread… i’ve tried adding the code from the documentation to the functions file in my child theme… however it’s still not showing up. the code that i used is:
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Cookie’] = ‘Cookie, cursive’;
return $fonts;
}add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{$fonts[‘Cookie’] = ‘Cookie, cursive’;
return $fonts;
}not sure if i need to add anything to the css as well? wasn’t mentioned in the documentation.
June 16, 2017 at 9:06 am #808875Hey Christina,
You can add any custom CSS code at the Dashboard > Enfold > General Styling > Quick CSS
Best regards,
John TorvikJune 17, 2017 at 6:52 pm #809347Hi! Yes, I’ve tried that as well. In addition, I’ve tried adding in the child theme style.css under the H1 class using the @import url(‘https://fonts.googleapis.com/css?family=Cookie’);. None of these have worked…
June 20, 2017 at 4:28 pm #810459June 22, 2017 at 8:50 pm #811820Hi Yigit! Yes, I’ve updated it for you!
June 23, 2017 at 5:58 pm #812217New development: Cookie font now showing in Enfold drop downs as an option but not taking effect. Any solutions? On a bit of a time crunch now…
- This reply was modified 7 years, 4 months ago by Green Beans Creative.
June 23, 2017 at 6:31 pm #812233Hi!
Sorry for the late reply!
I adjusted the code in Functions.php file a bit and then removed all font family changes on h1 tags from Quick CSS and Style.css and chose “Cookie” as H1 font family in Enfold theme options > Advanced Styling tab.
Please review your website now :)
Regards,
YigitJune 23, 2017 at 6:34 pm #812234Hi Yigit! I did see it and it’s working now, thanks so much! So moving forward for other sites, is the code in the child theme functions.php something that I can replicate? Do I need to include the @import in style.css? Just want to make sure that I know exactly what you did so I can use for other sites. Thanks!
June 23, 2017 at 6:40 pm #812239Hey!
You are welcome! :)
You can simply copy the code in Functions.php file and that will be enough. When that code is in functions.php file, you should be able to choose it in Enfold theme options and it would work as expected :)
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 ‘Google Fonts (continued)’ is closed to new replies.