Tagged: google fonts
-
AuthorPosts
-
October 15, 2015 at 3:49 pm #519374
Hi,
I want to include more google fonts possibilities in the Backend.
Do you have a way for that: Plugin or code?Thanks.
October 15, 2015 at 5:41 pm #519448Hi AWZ!
Please see here, http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/.
Regards,
ElliottOctober 19, 2015 at 10:20 am #520789Hi Elliott,
thanks.
In the case of installing a new google font / visisble on the backend: Does it always need the full code of this example or only parts of it?
Regards Sven
October 19, 2015 at 10:27 am #520793I think this is the solution – correct?
Only cpmplete the existing code with
$fonts[‘Google Font Name’] = ‘Google Font Name:400,600,800…’;Thanks
October 19, 2015 at 7:37 pm #521152Hey!
You would just switch out the name of the font in both instances. The 400, 700, etc etc, refers to how many “weights” you want to have included. The more weights and styles you include the bigger the font file will be.
Cheers!
ElliottOctober 20, 2015 at 10:02 am #521456Moin,
this is clear, I meant another thing.
For example, I want to add 3 more google fonts. I use this code one time in the functions.php and only add the following fonts inside at the following places. Correct?
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['PT Sans Narrow'] = 'PT Sans Narrow:400,700'; $fonts['PT Sans'] = 'PT Sans:400,700,400italic,700italic'; $fonts[‘Google Font Name1’] = ‘Google Font Name1:XXX,XXX,XXX…'; $fonts[‘Google Font Name2’] = ‘Google Font Name2:XXX,XXX,XXX…'; $fonts[‘Google Font Name3’] = ‘Google Font Name3:XXX,XXX,XXX…'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['PT Sans'] = 'PT Sans:400,700,400italic,700italic'; $fonts['PT Sans Narrow'] = 'PT Sans Narrow:400,700'; $fonts[‘Google Font Name1’] = ‘Google Font Name1:XXX,XXX,XXX…'; $fonts[‘Google Font Name2’] = ‘Google Font Name2:XXX,XXX,XXX…'; $fonts[‘Google Font Name3’] = ‘Google Font Name3:XXX,XXX,XXX…'; return $fonts; }
October 20, 2015 at 9:42 pm #522019Hey!
Yep, that will work.
Regards,
ElliottOctober 21, 2015 at 8:57 am #522179Thanks!
October 22, 2015 at 5:21 am #522725 -
AuthorPosts
- You must be logged in to reply to this topic.