Main Menu - Font Color and Background

Discussion in 'Figero WordPress Theme' started by rexmanaster, Dec 6, 2013.

  1. rexmanaster

    rexmanaster Member

    Joined:
    Feb 18, 2012
    Messages:
    180
    Likes Received:
    4
    Hi,

    How can I change the our main menu button font color when the button is active or in hover mode?

    Thanks,
    Rex
     
  2. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,

    Paste the following code in your Custom CSS
    (Appearance -> Theme Options -> Styling Options -> Custom CSS)

    Code:
    #menu li.current-menu-item a {
    color: red;
    background-color: green;
    }
    #menu li.current-menu-parent a, #menu li.current_page_parent a, #menu li a.selected, #menu li a:hover {
    color: red;
    background: green;
    }
     
    #menu .ddsmoothmenu li li a:hover{
    color: red;
    background: green;
    }
    In place of "red" and "green" you can put your color or color code.
    This will solve your issue.
     
  3. rexmanaster

    rexmanaster Member

    Joined:
    Feb 18, 2012
    Messages:
    180
    Likes Received:
    4
    Looks great, but it bring up a couple of additional questions.

    1. How can I change the menu font main color (i.e. neither current nor hover) to black? Right now it is the color that I have set for all site links and I need to override that.

    2. I have a drop down menu under some of my main menu buttons. When the main menu button is in current status, the drop down items' font is the correct color (in this case white). However, when the main menu button is in hover status, the drop down items' font is not the correct color, but is instead the same color as the font on an inactive button. What can I do to make sure that the the drop down items' font is the correct color in hover status so that it matches the top level items' font in hover status?

    Thanks,
     
  4. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Paste this code in Custom CSS
    Appearance > Theme Option > Styling Option > Custom CSS

    Code:
    #menu li a{
    color:yellow;
    }
    #menu .ddsmoothmenu li li a:link, #menu .ddsmoothmenu li li a:visited{
    color:yellow;
    } 
     
  5. rexmanaster

    rexmanaster Member

    Joined:
    Feb 18, 2012
    Messages:
    180
    Likes Received:
    4
    Gourav,

    I currently have the custom CSS displayed below. However, the sub-menu item text remains black unless and until active. Can you please suggest how I may accomplish my objective. Do I need all of this? Or can it be simplified further?

    /*===MENU FONT AND BACKGROUND===*/

    #menu li a {
    font-weight: bolder ! important;
    }

    #menu li.current-menu-item a {
    color: #ffffff!important;
    background-color: #a10c1f;
    }

    #menu li.current-menu-parent a, #menu li.current_page_parent a, #menu li a.selected, #menu li a:hover {
    color: #ffffff!important;
    background: #a10c1f;
    }

    #menu .ddsmoothmenu li li a:hover{
    color: #ffffff!important;
    background: #a10c1f;
    }

    #menu li a{
    color:#000000!important;
    }
    #menu .ddsmoothmenu li li a:link, #menu .ddsmoothmenu li li a:visited{
    color #ffffff;
    }
     
  6. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
  7. rexmanaster

    rexmanaster Member

    Joined:
    Feb 18, 2012
    Messages:
    180
    Likes Received:
    4
  8. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    please provide the following information listed below.

    Thread Link:
    Your Website URL:
    WordPress Username:
    WordPress Password:

    Send this information on our email at [email protected]
    I will check and resolve your issue

    Thanks & Regards
    Nitesh Raghuwanshi
     

Share This Page