Tagged: child theme
-
AuthorPosts
-
July 30, 2016 at 7:08 am #666782
**Reposting this thread**
Looks like another user took over.
- This topic was modified 8 years, 4 months ago by ccyran.
August 1, 2016 at 9:04 am #667152is there any way to add new google fonts via the quickcss function withouth modifing any php files?
August 1, 2016 at 9:09 am #667153I added this code to enfold-functions.php but it doesnt work
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Offside’] = ‘Offside:400,700’;
return $fonts;
}August 1, 2016 at 1:36 pm #667259Hi!
Please refer to this post – http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
If you are not using a child theme, please add the code right below following lineif(isset($avia_config['use_child_theme_functions_only'])) return;
Cheers!
YigitAugust 4, 2016 at 5:16 am #668372Thanks Yigit,
I tried this but no luck. Still have 9 fonts only.
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[‘PT Sans Narrow’] = ‘PT Sans Narrow:400,700’;
$fonts[‘PT Sans’] = ‘PT Sans:400,700,400italic,700italic’;
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’;
return $fonts;
}Could you help me with my second question I posted?
How do I make the header tabs Capitalized? and can the tracking be controlled?
Thanks!
- This reply was modified 8 years, 4 months ago by ccyran.
August 4, 2016 at 10:51 am #668476Hi,
Please create a temporary admin login and post it here privately and elaborate on the other changes you would like to make.
Best regards,
YigitAugust 4, 2016 at 6:53 pm #668686Hey Yigit,
Understood, please see my notes in “Private Content”.
Thanks!
ChrisAugust 5, 2016 at 7:25 pm #669100August 9, 2016 at 1:27 pm #670310Hi,
I added the code near the top, please review your website now.
Best regards,
YigitJanuary 14, 2017 at 1:18 am #733401I can’t seem to get this to work.
I added the following code in the functions.php however Sorts Mill Goudy is not showing up in the drop down under Theme Settings > General Styling > Fonts
add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Sorts Mill Goudy'] = 'Sorts Mill Goudy:400,400italic'; return $fonts; }
Thanks
JonJanuary 14, 2017 at 1:19 am #733402log in
January 14, 2017 at 1:30 am #733404January 14, 2017 at 1:50 am #733407Awesome thanks,
How do I carry over a change in Body/Content font to things like contact forms?
It look like it stayed with the default theme font in those places.Thanks
JonJanuary 17, 2017 at 3:04 pm #734736Hi,
try this code inside Quick CSS field:
textarea { font-family: 'fantasy'; }
and adjust as needed.
Best regards,
AndyJanuary 17, 2017 at 6:29 pm #734893Andy,
Thanks, but no luck.
I used the name for the Google Font I am using in the rest of the content area, but the selector drop down, the submit button, and any text typed into the fields are still showing the default theme font.textarea { font-family: 'Sorts Mill Goudy'; }
http://6d6.7fe.myftpupload.com/contact/
Jon
January 18, 2017 at 7:23 pm #735489Hi,
try to use an !important:
textarea { font-family: 'Sorts Mill Goudy' !important; }
Best regards,
AndyJanuary 20, 2017 at 1:58 pm #736468Andy,
Thanks.
I had also tried that, but it doesn’t seem to be working.January 20, 2017 at 2:02 pm #736471Hey!
@millertimesites Can you please start a new thread, elaborate on the changes you would like to make and attach temporary admin logins in private content field?Best regards,
YigitFebruary 2, 2017 at 7:27 pm #741988Sounds great, If I think of anything else I will open a new thread.
Just to help other Enfold users out. To add the Google Font of Sort Mill Goudy, this code
add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Sorts Mill Goudy'] = 'Sorts Mill Goudy:400,400italic'; return $fonts; }
was placed right below this line in inside functions.php
if(isset($avia_config['use_child_theme_functions_only'])) return;
But how should it be handled in a child theme?
Does all of the code from Enfold functions.php need to be pasted in the child theme functions.php or just the portion we are adding to it?
I ask since the Google font code seems to not work if added to the end of the file and needs to go in a specific place.Thanks a ton!
AmFebruary 6, 2017 at 3:07 pm #743398Hi,
check out our documentation: http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
Best regards,
AndyFebruary 16, 2017 at 7:33 pm #748108Andy,
Awesome, that worked great when using a child theme!
Glad i know both options now.
February 20, 2017 at 1:24 pm #749308Hi,
Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)Best regards,
Andy -
AuthorPosts
- The topic ‘Adding Google fonts in Enfold’ is closed to new replies.