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

    Hi,
    I’ve seen a lot of posts on this, and even a couple about this specific font, but I can’t seem to get this to work.

    I have this in my child theme functions.php:

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

    But the Rokkitt font isn’t showing in the drop down in Theme Options for either the heading or the body font. I would greatly appreciate a point in the right direction.

    Thanks!

    #633184

    Hey Taryn!

    I moved your code to the top of functions.php file of your child theme. Please review your website now

    Cheers!
    Yigit

    #637807

    That worked! Thanks! :)

    #637994

    Hi,

    You are welcome, glad we could help :)
    Let us know if you have any other questions or issues :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Added Google font – not showing in drop down in Theme Options’ is closed to new replies.