-
AuthorPosts
-
September 26, 2016 at 1:36 pm #691620
Hi
So I added at the bottom of function.php this code:
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts) {
$fonts[‘Racing Sans One’] = ‘Racing Sans One’;
return $fonts;
}add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts) {
$fonts[‘PT Mono’] = ‘PT Mono’;
return $fonts;
}but none of fonts are showing under general styling – fonts tab.
Before updating to 3.8 i used the same code from above and it worked perfectly. Both fonts are on google list.
September 26, 2016 at 1:38 pm #691623Hey pajicu,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
- The URL to the login screen.
- A valid username (with full administration capabilities).
- As well as a password for that username.
- permission to deactivate plugins if necessary.
Best regards,
YigitSeptember 26, 2016 at 1:57 pm #691656you are not using the google fonts decalaration:
go to the @import rule goolge gave you for this font:
@import 'https://fonts.googleapis.com/css?family=Racing+Sans+One';
or with latin extended:
@import 'https://fonts.googleapis.com/css?family=Racing+Sans+One&subset=l
the interesting thing now is what is behind that css?family=_______________
same with PT Mono:
@import 'https://fonts.googleapis.com/css?family=PT+Mono&subset=latin-ext
________________
so please try this here :
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Racing Sans One'] = 'Racing+Sans+One&subset=l'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['PT Mono'] = 'PT+Mono&subset=latin-ext'; return $fonts; }
btw: they are addded at the end of the list
September 26, 2016 at 2:13 pm #691673I replaced with code you gave me. Nothing happened, also tried without latin ext
September 26, 2016 at 2:19 pm #691679Hey!
Please see – https://kriesi.at/support/topic/added-google-fonts-not-showing/#post-691623
Best regards,
YigitSeptember 26, 2016 at 2:24 pm #691687i tested it – and it works
but! where do you insert that code ? on functions.php of your parent theme?
September 26, 2016 at 2:25 pm #691690sorry, didn’t notice that reply area can not be empty…here are my Login credentials:
September 26, 2016 at 2:32 pm #691697yes sir, on the bottom of parent theme
September 26, 2016 at 2:34 pm #691699Hey!
I edited functions.php file and moved your code from bottom to below following line
if(isset($avia_config['use_child_theme_functions_only'])) return;
Please review your website now
Best regards,
YigitSeptember 26, 2016 at 2:47 pm #691715Thank you very much!!!! you are really the best and the fastest support.
Code i gave in first post is the correct one…just wrong place in function. ‘+’ in the second code is excess. (PT+Mono) didn’t work so i erase (PT Mono) and now it’s back to as it was
Best regards,
Uroš
September 26, 2016 at 2:49 pm #691718Hey!
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 :)Cheers!
Yigit -
AuthorPosts
- The topic ‘Added google fonts not showing’ is closed to new replies.