Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #288646

    Hello,

    I’d like to use the Google Font “Roboto Slab” as the paragraph text. How can I achieve this? It’s not in the predefined font options.

    #288648

    Hi samforan!

    Please refer to Ismael’s post here – https://kriesi.at/support/topic/add-new-font/#post-234710

    Cheers!
    Yigit

    #288663

    Thanks, but when I follow the directions on that, it makes none of the Avia pages in the backend load – they just stay white. Doesn’t seem to work for me.

    WP 3.9.1, Enfold 2.8.1

    #288670

    I would like to use “Roboto” as the Header’s, and “Roboto Slab” as the body.

    #288720

    Hey!

    Can you post the link to your website please?

    Cheers!
    Yigit

    #289024

    Sorry no, it’s running on a local MAMP server.

    #289339

    Hi!

    Thank you for the update.

    Please edit functions.php, find this code on line 16:

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

    Below, add this code:

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

    Best regards,
    Ismael

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.