-
AuthorPosts
-
July 28, 2017 at 10:27 am #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-menuinto 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
IvanaJuly 28, 2017 at 6:03 pm #831209Hey Ivana,
Would you be able to provide a link to the site so we can inspect the element?
Best regards,
Jordan ShannonJuly 29, 2017 at 12:19 am #831342Thank you Jordan. Please see the link in private content.
July 29, 2017 at 2:53 am #831361Hi,
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,
YigitAugust 2, 2017 at 2:52 am #833142I 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
IvanaPS. Alternatively is there a quick CSS code I can apply that will make the Navigation font Courier New.
August 2, 2017 at 11:30 am #833345Hi,
Can you please post FTP and WP admin logins here privately so we can register new font for you?
Best regards,
YigitAugust 2, 2017 at 11:47 am #833356Sure, many thanks. Login details below.
I greatly appreciate your help.
August 2, 2017 at 12:57 pm #833403Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.