Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #808722

    Hi! This is in reference to the closed thread… i’ve tried adding the code from the documentation to the functions file in my child theme… however it’s still not showing up. the code that i used is:

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘Cookie’] = ‘Cookie, cursive’;
    return $fonts;
    }

    add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
    function avia_add_content_font($fonts)
    {

    $fonts[‘Cookie’] = ‘Cookie, cursive’;
    return $fonts;
    }

    not sure if i need to add anything to the css as well? wasn’t mentioned in the documentation.

    #808875

    Hey Christina,

    You can add any custom CSS code at the Dashboard > Enfold > General Styling > Quick CSS

    Best regards,
    John Torvik

    #809347

    Hi! Yes, I’ve tried that as well. In addition, I’ve tried adding in the child theme style.css under the H1 class using the @import url(‘https://fonts.googleapis.com/css?family=Cookie’);. None of these have worked…

    #810459

    Hi,

    Can you please switch user role to administrator? :)

    Best regards,
    Yigit

    #811820

    Hi Yigit! Yes, I’ve updated it for you!

    #812217

    New development: Cookie font now showing in Enfold drop downs as an option but not taking effect. Any solutions? On a bit of a time crunch now…

    #812233

    Hi!

    Sorry for the late reply!

    I adjusted the code in Functions.php file a bit and then removed all font family changes on h1 tags from Quick CSS and Style.css and chose “Cookie” as H1 font family in Enfold theme options > Advanced Styling tab.

    Please review your website now :)

    Regards,
    Yigit

    #812234

    Hi Yigit! I did see it and it’s working now, thanks so much! So moving forward for other sites, is the code in the child theme functions.php something that I can replicate? Do I need to include the @import in style.css? Just want to make sure that I know exactly what you did so I can use for other sites. Thanks!

    #812239

    Hey!

    You are welcome! :)

    You can simply copy the code in Functions.php file and that will be enough. When that code is in functions.php file, you should be able to choose it in Enfold theme options and it would work as expected :)

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

    Best regards,
    Yigit

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Google Fonts (continued)’ is closed to new replies.