Tagged: google font
-
AuthorPosts
-
October 14, 2015 at 3:18 pm #518721
Hi There
Been trying to follow a few threads on adding google fonts, mainly: https://kriesi.at/support/topic/add-new-font/#post-234710
https://www.google.com/fonts#UsePlace:use/Collection:RokkittWith no success. Can you help? I still do not see the font listed n the pull down menu for Fonts
I added the code to my functions file:add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Rokkitt'] = 'Rokkitt:400,700'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Rokkitt'] = 'Rokkitt:400,700'; return $fonts; }
October 14, 2015 at 5:24 pm #518834Hi reddishpinkmedia!
Setup a child theme, http://kriesi.at/documentation/enfold/downloads/, and add it to the functions.php of the child theme. If it still does not work then send us a WordPress login and we’ll take a look.
Regards,
ElliottOctober 15, 2015 at 3:36 pm #519369OK! That worked! But now how do I get it to show in my theme as right now it is the Child theme?
- This reply was modified 9 years, 2 months ago by reddishpinkmedia.
October 15, 2015 at 3:48 pm #519373Oh nevermind, I see the import settings feature. Very nice!!
October 15, 2015 at 3:56 pm #519378How do we add a second font?
October 15, 2015 at 4:27 pm #519390Hey!
You can change the code to following one
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Rokkitt'] = 'Rokkitt:400,700'; $fonts['Other-font'] = 'Other-font:400,700'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Rokkitt'] = 'Rokkitt:400,700'; $fonts['Other-font'] = 'Other-font:400,700'; return $fonts; }
Cheers!
YigitDecember 24, 2015 at 4:20 am #557332Hello,
I entered in the code provided above in the functions.php child theme, however the fonts are not showing in the styling dropdowns.
I entered it exactly as listed above. Is there another step that i’m missing?
December 27, 2015 at 2:36 am #557534Hey!
Did you make sure to change “Other-font” with the actual font you want to include?
Cheers!
Elliott -
AuthorPosts
- You must be logged in to reply to this topic.