Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #610878

    Hello!
    I would like a way to change the header menu links to italic and I need help with it.

    Would I need to add custom CSS code?
    If yes, I would like to ask you if you could please give me that code.

    I would also need help with how to add more google fonts to Enfold. (If someone already asked this if you could please send me a link to that answer I would highly appreciate it.)

    Thank you.

    Lexie.

    #610902

    Hi LexieIsabelle!

    Please see – http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
    then add following code to Quick CSS in Enfold theme options under General Styling tab

    #top #header .av-main-nav > li > a { font-style: italic; }

    Please make sure that > sign is not converted to – http://i.imgur.com/IDXRZQ3.png in Quick CSS field.

    If you need help applying the changes, please create a temporary admin login and post it here privately so we can apply them for you

    Regards,
    Yigit

    #612275

    Hi Yigit, thank you for your help. Needed to correct the sign and now it works. :)

    #612287

    I run into a problem. I’m trying to follow the instructions about adding extra google fonts (you sent me a link to that).
    I copy pasted the code provided and changed the name of the font to the one I want.
    But every time I paste the code to functions.php my site breaks down.

    This is the code. I’m probably doing something wrong.

    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[‘PT Sans’] = ‘Playfair Display:400,700,900,400italic,700italic,900italic’;
    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,400italic,700italic,900italic’;
    $fonts[‘Playfair Display’] = ‘Playfair Display:400,700,900’;
    return $fonts;
    }

    I would appreciate your help. Thank you.

    #612882

    Hey Lexie!

    Please create a temporary admin login and post it here privately so we can insert the code for you :)

    Best regards,
    Yigit

    #619875

    Ok, I will do that I just need to collect all the fonts I want. Because I want a few.

    Thank you.

    #619881

    Hi!

    Sure, please list them here so we can add it for you.

    Best regards,
    Yigit

    #653519
    #653520
    #654784

    Hi,

    I added the fonts. I noticed you are not using a child theme, so changes will be overwritten when you update the theme. In case you need to add the codes again, please see below

    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Playfair Display'] = 'Playfair Display:400,700';
    $fonts['Source Sans Pro'] = 'Source Sans Pro:400,700';
    $fonts['Karla'] = 'Karla:400,700';
    $fonts['Neuton'] = 'Neuton:400,700';
    $fonts['Merriweather'] = 'Merriweather:400,700';
    $fonts['Libre Baskerville'] = 'Libre Baskerville:400,700';
    $fonts['Crimson Text'] = 'Crimson Text:400,700';
    $fonts['Old Standard TT'] = 'Old Standard TT:400,700';
    $fonts['Cardo'] = 'Cardo:400,700';
    $fonts['PT Serif'] = 'PT Serif: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';
    $fonts['Source Sans Pro'] = 'Source Sans Pro:400,700';
    $fonts['Karla'] = 'Karla:400,700';
    $fonts['Neuton'] = 'Neuton:400,700';
    $fonts['Merriweather'] = 'Merriweather:400,700';
    $fonts['Libre Baskerville'] = 'Libre Baskerville:400,700';
    $fonts['Crimson Text'] = 'Crimson Text:400,700';
    $fonts['Old Standard TT'] = 'Old Standard TT:400,700';
    $fonts['Cardo'] = 'Cardo:400,700';
    $fonts['PT Serif'] = 'PT Serif:400,700';
    return $fonts;
    }

    Best regards,
    Yigit

    #658572

    Hi Thanks!
    So when I create a child theme I’ll have to do it again?
    Please let me know where to paste these codes exactly.
    Thank you!

    #658578

    Hi!

    When you update the theme, they will be overwritten. If you create a child theme, please remove this code from functions.php file of parent theme before adding it to functions.php file of your child theme. This is important or you will blow up your site. If you need our help, please let us know after creating a child theme.

    Cheers!
    Yigit

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