Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #830982

    I have installed Google Fonts and have managed to update all the headings, but I am wondering what is the CSS code please for the main menu.

    I have added
    li.menu-item
    ul.menu-main-menu

    into the CSS selectors, but when I change the font under Customise -> Theme Typography, nothing happens.

    I am trying to change the Main Menu font to “Courier New” within the Enfold theme.

    Many thanks for your help
    Ivana

    #831209

    Hey Ivana,

    Would you be able to provide a link to the site so we can inspect the element?

    Best regards,
    Jordan Shannon

    #831342

    Thank you Jordan. Please see the link in private content.

    #831361

    Hi,

    Have you added your additional Google fonts by referring to this thread – http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/? If not, please do so and then go to Enfold theme options > Advanced Styling and edit “Main menu items”

    Best regards,
    Yigit

    #833142

    I have tried adding the code you suggested into the child theme functions.php file and have replaced “PT Sans Narrow” and “PT Sans” with “Courier New” in all the fields below and when I did, I got a fatal error message, so I delete it again.

    As I am not confident in doing this, can you please advise the exact code that I need to add in order to have “Courier New” available as an option in the fonts.

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

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

    $fonts[‘PT Sans’] = ‘PT Sans:400,700,400italic,700italic’;
    $fonts[‘PT Sans Narrow’] = ‘PT Sans Narrow:400,700’;
    return $fonts;
    }

    Many thanks
    Ivana

    PS. Alternatively is there a quick CSS code I can apply that will make the Navigation font Courier New.

    #833345

    Hi,

    Can you please post FTP and WP admin logins here privately so we can register new font for you?

    Best regards,
    Yigit

    #833356

    Sure, many thanks. Login details below.

    I greatly appreciate your help.

    #833403

    Hi,

    Sorry for the confusion however Courier New is not one of Google fonts. You can simply add following code to Quick CSS in Enfold theme options under General Styling tab to change font family of menu links

    .av-main-nav > li > a {
        font-family: "Courier New";
    }

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

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