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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • impin
    New Member
    • Jul 2010
    • 127

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

    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:
    Code:
    .sf-menu > li > a {
    font: bold 21px/66px "Trebuchet MS", Arial, Helvetica, sans-serif;
    color: #333333;
    }
    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
    Code:
    .sf-menu > li > a {
    	padding:0 28px;
    	border:none;
    	color:#323232;
    	-webkit-transition:0.3s;
    	-moz-transition:0.3s;
    	-o-transition:0.3s;
    	transition:0.3s;
    }

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

    how to fix this???
  • JosephTele
    New Member
    • Jan 2014
    • 3

    #2
    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.

    Comment

    • nomad
      Recognized Expert Contributor
      • Mar 2007
      • 664

      #3
      Question why do you have

      .sf-menu > li > a {

      should it be
      .sf-menu li a {

      Comment

      Working...