Tagged: google fonts
-
AuthorPosts
-
October 6, 2017 at 8:23 pm #861170
Hello Kriesi and Enfold community – I need to add Roboto Slab via Google Fonts to my freshly installed Enfold theme. I tried a Child Theme but no luck so far. Whats the best way to add Roboto Slab? thanks in advance.
October 7, 2017 at 6:01 am #861315Hey Jurgen,
Check it http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
and if you`re using a child theme, add the below code in your functions.php
if(isset($avia_config['use_child_theme_functions_only'])) return;
Best regards,
John TorvikOctober 9, 2017 at 10:03 pm #862143I added the child theme, but Roboto Slab is not rendering? got any tips for me?
<?php if(isset($avia_config['use_child_theme_functions_only'])) return; add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Roboto Slab'] = 'Roboto+Slab:100,300,400,700'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Roboto Slab'] = 'Roboto+Slab:100,300,400,700'; return $fonts; }
October 9, 2017 at 10:07 pm #862147Hey!
Please try using the code as following
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Roboto Slab'] = 'Roboto Slab:100,300,400,700'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Roboto Slab'] = 'Roboto Slab:100,300,400,700'; return $fonts; }
If that still does not work, please create a temporary admin login and post it here privately
Cheers!
YigitOctober 9, 2017 at 10:30 pm #862154cool! that worked. thank you
October 9, 2017 at 10:41 pm #862155Hi,
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 ‘H1 – Google Fonts Roboto Slab’ is closed to new replies.