Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #861170

    Hello Kriesi and Enfold community – I need to add Roboto Slab via Google Fonts to my freshly installed Enfold theme. I tried a Child Theme but no luck so far. Whats the best way to add Roboto Slab? thanks in advance.

    #861315

    Hey Jurgen,

    Check it http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/

    and if you`re using a child theme, add the below code in your functions.php

    
    if(isset($avia_config['use_child_theme_functions_only'])) return;
    

    Best regards,
    John Torvik

    #862143

    I added the child theme, but Roboto Slab is not rendering? got any tips for me?

    <?php
    
    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['Roboto Slab'] = 'Roboto+Slab:100,300,400,700';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    
    $fonts['Roboto Slab'] = 'Roboto+Slab:100,300,400,700';
    return $fonts;
    }
    
    #862147

    Hey!

    Please try using the code as following

    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Roboto Slab'] = 'Roboto Slab:100,300,400,700';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    
    $fonts['Roboto Slab'] = 'Roboto Slab:100,300,400,700';
    return $fonts;
    }

    If that still does not work, please create a temporary admin login and post it here privately

    Cheers!
    Yigit

    #862154

    cool! that worked. thank you

    #862155

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

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘H1 – Google Fonts Roboto Slab’ is closed to new replies.