Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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.

    #691623

    Hey 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,
    Yigit

    #691656

    you 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

    #691673

    I replaced with code you gave me. Nothing happened, also tried without latin ext

    #691679
    #691687

    i tested it – and it works

    but! where do you insert that code ? on functions.php of your parent theme?

    #691690

    sorry, didn’t notice that reply area can not be empty…here are my Login credentials:

    #691697

    yes sir, on the bottom of parent theme

    #691699

    Hey!

    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,
    Yigit

    #691715

    Thank 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š

    #691718

    Hey!

    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

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Added google fonts not showing’ is closed to new replies.