Tagged: 

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

    hello, i tried the code in the enfold forum but it didnt work, can you let me know please how i can add other google fonts to my site :)

    #213909

    Hi Transformers Universe!

    You can try using this plugin http://wordpress.org/plugins/wp-google-fonts/

    Best regards,
    Yigit

    #213910

    thanks but how do i get that to link in with the kriesi theme options? so that i dont have to re-write all of the css?

    #214136
    This reply has been marked as private.
    #223258

    I too want to add a Google Font (Merienda One) to be listed in the theme’s options. I’d like it to be the font used in Headers. Can I get a private or public response? Thanks! BTW, this theme is awesome!

    #223287

    Hey!

    Use this code:

    
    add_filter( "avf_google_heading_font", "avia_add_heading_font");
    function avia_add_heading_font($fonts)
    {
    $fonts['Montserrat'] = "Merienda One:400";
    return $fonts;
    }
    
    add_filter( "avf_google_content_font", "avia_add_content_font");
    function avia_add_content_font($fonts)
    {
    $fonts['Montserrat'] = "Merienda One:400";
    return $fonts;
    }
    

    and insert it into the child theme functions.php or add it to the very top of the parent theme functions.php after

    
    global $avia_config;
    

    Regards,
    Peter

    #228665

    Thanks, that worked! But now my Merienda font is labeled Montserrat in the Theme Options. I’ll change that when I get a chance. I’m guessing that is two simple replacements in your code.

    Thanks again for an incredibly good theme!!

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Adding google custom fonts’ is closed to new replies.