473,473 Members | 1,482 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How do i change the default font of navigation menu? in wordpress?

127 New Member
i am trying to change the default font of the site. i have edited the css file and the changed the font. everything works fine. except the nav menu font. its not changing. it is set to default ""Trebuchet MS", Arial, Helvetica, sans-serif" font.

css code:
Expand|Select|Wrap|Line Numbers
  1. .sf-menu > li > a {
  2. font: bold 21px/66px "Trebuchet MS", Arial, Helvetica, sans-serif;
  3. color: #333333;
  4. }
i can change the font here.. but the problem i am facing here is this code is pointing to (index):67 (when i do inspect element in chrome) where can find this code? which file i have to edit.?




in css file .sf-menu > li > a this part doesn't have this code.

Code in style.css
Expand|Select|Wrap|Line Numbers
  1. .sf-menu > li > a {
  2.     padding:0 28px;
  3.     border:none;
  4.     color:#323232;
  5.     -webkit-transition:0.3s;
  6.     -moz-transition:0.3s;
  7.     -o-transition:0.3s;
  8.     transition:0.3s;
  9. }

even if i put font face here, it not changing the navigation menu fonts.

how to fix this???
Jan 20 '14 #1
2 1585
JosephTele
3 New Member
Why don't you try to create an entirely different class for this? The "!important" tag will help you in this. You can set this class for the navigation menu also.
Jan 30 '14 #2
nomad
664 Recognized Expert Contributor
Question why do you have

.sf-menu > li > a {

should it be
.sf-menu li a {
Jan 31 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

55
by: Haines Brown | last post by:
I've been setting font-size 1em; as the default in my style sheets. Until now, that seemed to be ok. But now I'm beginning to wonder. My aim is to have an easily readable, but not overly large...
22
by: Marek Mand | last post by:
How to create a functional *flexible* UL-menu list <div> <ul> <li><a href=""></li> <li><a href=""></li> <li><a href=""></li> </ul> </div> (working in IE, Mozilla1.6, Opera7 (or maybe even...
10
by: H.S. | last post by:
Hi, Let me begin by saying that I am not an HTML expert. The most experience I have for HTML authoring is when I made my webpages in my grad studies at my university and some on my home computer...
2
by: AJang | last post by:
The .NET windows form's default font size of caption and menuitem is a little too small for me. How to change these font size? Thanks Ajang
2
by: Woody Splawn | last post by:
When placing labels and text boxes on winforms they are coming up by default in a size that is just a little too small. How do I change this so that in the future they will come up with a bigger...
0
by: monahan7_7 | last post by:
Saw a posting on this from January - wanting to know if anyone has a resolution. Navigation Menu in asp.net 2.0. Using web.sitemap file 64K in size. onMouseOver for menu items, takes up to 4...
4
by: tburger | last post by:
Hey everyone- This is my first post at The Scripts, but I've used the forums before for other programming issues. Hopefully, someone has some solid styling advice for me. I've now been dealing...
3
by: wvmitchell | last post by:
Is there a way to do this? This is for my own benefit while developing in Access, not for the users. Used to be that you could change UTILITY.MDA in Access 2.0 but I can't find the equivalent for...
1
by: Dave | last post by:
Hello, I'm working on a new site and i'd like to have a navigation menu on it. Ideally i'm thinking: home first item second item etc obviously with different names. I could use echo to...
58
by: Don Li | last post by:
I've tried <body style="font-family:Verdana,Arial,Helvetica;font-size:0.8em;"> or <body style="font-family:Verdana,Arial,Helvetica;font-size:11pct;"> or <body...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.