Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #707231

    Hello everyone,

    I have been trying to add some google fonts to my Enfold site, however, I only get Noto Serif to work. I added this code to the Child theme functions.php. Although the font show up in the drop down list, nothing changes in the preview, nor does it change on the site.

    Here is the code. Thanks for your help. Chris

    /*
    * Add your own functions here. You can also copy some of the theme functions into this file.
    * WordPress will use those functions instead of the original functions then.
    */

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘Noto Serif’] = ‘Noto+Serif:400,400italic,700,700italic’;
    $fonts[‘Noto Sans’] = ‘Noto+Sans:400,400italic,700,700italic’;
    $fonts[‘Noto Sans CJK JP’] = ‘Noto+Sans+CJK+JP:400,500,700”;
    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’;
    $fonts[‘Google fonts’][‘Noto Sans’] = ‘Noto+Sans:400,400italic,700,700italic’;
    $fonts[‘Google fonts’][‘Noto Sans CJK JP’] = ‘Noto+Sans+CJK+JP:400,500,700’;
    return $fonts;
    }

    #708345

    Hey!

    I have adjusted the code in functions.php file. Can you please review your website now?

    Best regards,
    Yigit

    #708383

    Great, thank you. It is working now!

    #708423

    Hi,

    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 :)

    Enjoy your weekend!

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Google Font Noto sans and Noto Sans CJK JP’ is closed to new replies.