-
AuthorPosts
-
February 1, 2016 at 5:54 am #575551
Ahoy –
I’m trying to add 2 google fonts to enfold but when I add these functions twice things get haywired…
I’m using this post
https://kriesi.at/support/topic/add-new-font/?login_error#post-234710
I’m trying to add Sans Source Pro and Noto Serif
Please advise
February 1, 2016 at 5:07 pm #575899Hey mcraig77!
Do you mind creating a temporary admin login and posting it here privately so we can make the change for you? Solution provided here – http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/ should have worked.
Cheers!
YigitFebruary 1, 2016 at 9:07 pm #576012Sure! Thanks!
Im using a custom functions plugin to add that code.
February 2, 2016 at 10:04 pm #576733Hey!
Please use a plugin to add google fonts to your wordpress site https://wordpress.org/plugins/search.php?q=google+fonts
Best regards,
Vinay- This reply was modified 8 years, 9 months ago by Vinay.
February 3, 2016 at 7:57 am #576933Cool plugin!
I got the bulk of the text changed but it looks like I need to make custom area certain areas.
Can you guide me on css for the following:
Navigation Menu: screenshot 1
Pacific Flyway: Screenshot 2
Socket Text: Screenshot 3
February 4, 2016 at 5:44 am #577567Hi,
Could you post a link to your site as well please? We need to inspect the elements in question.
Regards,
RikardFebruary 4, 2016 at 5:53 am #577570Here ya go!
February 5, 2016 at 5:37 am #578252Hi!
We added the google filter in your functions.php file around line 18:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Source Sans Pro'] = 'Source+Sans+Pro:400,200,200italic,300,300italic,400italic,600,600italic,700,700italic,900,900italic'; $fonts['Noto Serif'] = 'Noto+Serif:400,400italic,700,700italic'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Google fonts']['Source Sans Pro'] = 'Source+Sans+Pro:400,200,200italic,300,300italic,400italic,600,600italic,700,700italic,900,900italic'; $fonts['Google fonts']['Noto Serif'] = 'Noto+Serif:400,400italic,700,700italic'; return $fonts; }
You can now select the fonts in the General Styling > Fonts panel. You’ll find them at the very end of the dropdown. If you need to alter certain elements in the theme, please go to the Advanced Styling panel or use the Quick CSS field.
NOTE: Please create a child theme so that you can move the filter in the child theme’s functions.php file: http://kriesi.at/documentation/enfold/using-a-child-theme/
Best regards,
IsmaelFebruary 5, 2016 at 7:57 am #578336Ahoy –
Can I get that code added to the custom function widget or google analytics area instead? I need to have the site updatable…
Thanks!
February 5, 2016 at 9:11 am #578376Hey!
You can try that it might work but using a child theme is a much better way to do this. Once you activate the child theme you can enter this code into theme via Appearance > Editor > functions.php
Please refer to the link below to setup a child theme http://kriesi.at/documentation/enfold/using-a-child-theme/
Cheers!
Vinay KashyapFebruary 5, 2016 at 9:42 am #578387Ahoy –
Im not going to lie Ive never used a child theme. For the time being can you remove that code – I’m going to try and see if those other options will work… if not I will try the child theme
February 8, 2016 at 2:24 pm #579632Hi!
please remove the code in question by yourself.
Let us know in a new ticket if you have some more questions related to the theme, where you need assistance and guidance.
Best regards,
AndyFebruary 9, 2016 at 4:34 am #580074OK that works but I’m still having an issue. I need the weight to be Source Sans Pro 200 for the menu links…
Please advise
February 10, 2016 at 7:18 am #580844Hey!
Add this in the Quick CSS field:
.av-main-nav > li > a { font-weight: 200; }
Best regards,
IsmaelFebruary 5, 2018 at 6:57 pm #908146Hello,
I installed a pluging (Easy Google Fonts) in order to add more fonts without having to edit the functions.php – however, in spite of having a correct Google Fonts API key, nothing happens – I only see the standard 9 fonts?
February 5, 2018 at 9:46 pm #908223Hi,
Could you please contact the plugin developer, so they can be able to help you with that?
Best regards,
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.