Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #668377

    Hey guys,

    QUESTION 1:
    There’s only 9 fonts in the dropdown menu. Can you guys help me add google fonts?
    I don’t have the child theme installed.

    QUESTION 2:
    How do I make my main tabs uppercase? Currently it’s lowercase.

    QUESTION 3:
    My logo and tab text is close to the top of the webpage. Is there CSS to bring this down a bit? Like 10 pixels?

    Thanks guys!
    Chris

    #669283

    Hey Chris,

    1. Please follow this guide: http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/. Let us know what fonts you would like to add if you can’t figure it out.

    2. Try this in Quick CSS:

    #avia-menu li a .avia-menu-text {
        text-transform: uppercase !important;
    }

    3. Try this as well:

    #header {
    padding-top: 10px !important;
    }

    Best regards,
    Rikard

    #669637

    Hey Rikard,

    That works! Just need help on #1. lets say I wanted to add roboto, how would I adjust the CSS?

    and how do I implement multiple fonts?

    Thanks again!

    #669982

    Hey!

    In the example two font families are added, PT Sans Narrow and PT Sans. You can adjust those lines or add more lines to add more font families.

    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['PT Sans Narrow'] = 'PT Sans Narrow:400,700';
    $fonts['Robot'] = 'Roboto:400,700,400italic,700italic';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    
    $fonts['Roboto'] = 'Roboto:400,700,400italic,700italic';
    $fonts['PT Sans Narrow'] = 'PT Sans Narrow:400,700';
    return $fonts;
    }

    Cheers!
    Yigit

    #670137

    Hey Yigit,

    I think I get it! Sorry. Can you show me one more example of it you added another font to this mix? I’m confused where to specifically add the fonts in this css.

    #670621

    Hi,

    What other font would you like to add?

    Best regards,
    Rikard

    #670842

    Hey Rikard,

    Playfair (3weights)
    Work Sans (9 weights)
    Rubik (5weights)
    Space Mono (two weights)

    If you guys could show me how to add one of these again I’ll figure out how to do the rest!

    Chris

    #670844

    Hey!

    Please find the code i posted above in your functions.php file and change it to following

    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Playfair Display'] = 'Playfair Display:400,700,900';
    $fonts['Space Mono'] = 'Space Mono:400,700';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    
    $fonts['Playfair Display'] = 'Playfair Display:400,700,900';
    $fonts['Space Mono'] = 'Space Mono:400,700';
    return $fonts;
    }

    Then list your other font families below it.

    Best regards,
    Yigit

    #670943

    Hey Yigit,

    Why is the copy written twice? Thats where I’m lost

    You posted this…

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘Playfair Display’] = ‘Playfair Display:400,700,900’;
    $fonts[‘Space Mono’] = ‘Space Mono:400,700’;
    return $fonts;
    }

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

    $fonts[‘Playfair Display’] = ‘Playfair Display:400,700,900’;
    $fonts[‘Space Mono’] = ‘Space Mono:400,700’;
    return $fonts;
    }

    but where “add filter appears” it looks to be a duplicate. Is that on purpose?
    thanks!

    #670953

    Hi!

    One is for heading element and one for content :)

    Cheers!
    Yigit

    #671034

    Hey!

    Dude so sorry! Can’t believe I missed that. All makes sense now.

    Thanks again guys! I really appreciate it.

    Chris

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Adding Google Fonts to general styling’ is closed to new replies.