Results 1 to 1 of 1

Thread: Change BG color to highlight a Global Menu item

  1. #1
    Thread Starter
    Veteran Fanatic's Avatar
    Join Date
    Jul 2010
    Location
    Canada
    Posts
    859
    Thanks
    300
    Thanked 56 Times in 50 Posts

    Change BG color to highlight a Global Menu item

    Ovidiu, I'm trying to highlight a Menu item (ad-tag) that I inserted through the Appearance/Menus/Global (Primary Navigation)

    I tried duplicating the Ad button css to create a new one for the Highlighted menu item as such:

    Code:
    #primary-menu.navbar-default .navbar-nav.menu-item-highlight>.active>a {
      background: #ff3250!important;
    }
    
    #primary-menu.navbar-default .navbar-nav.menu-item-highlight>.active>a:hover {
      background: #999999!important;
    }
    Then I went back in the WP Appearance/Menus/Global (Primary Navigation) and inserted the new class "menu-item-highlight" under "CSS Classes (optional)" but I would not work, I tried inserting "primary-menu.navbar-default .navbar-nav.menu-item-highlight" but the . and spaces are stripped once I saved the Menu.

    How can I go by doing this?


    I do see the class assigned to the new Menu item as such:
    menu-item menu-item-type-taxonomy menu-item-object-ad_tag current-menu-item menu-item-25055 active

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Main item in Global menu nulled if Sub item added
    By Fanatic in forum ClassiPost
    Replies: 4
    Last Post: March 7th, 2020, 06:47 AM
  2. How to change url of Menu item with a custom url
    By shri72 in forum Help Using HireBee
    Replies: 5
    Last Post: November 25th, 2014, 08:16 AM
  3. [SOLVED] How to change url of custom menu item?
    By shri72 in forum Freelancerr
    Replies: 2
    Last Post: November 25th, 2014, 07:33 AM
  4. [SOLVED] Change wordings of Login/Register menu item
    By openlime in forum Simplux
    Replies: 4
    Last Post: June 22nd, 2014, 08:48 AM
  5. Featured Jobs Highlight Color
    By tlayne in forum JobRoller General Discussion
    Replies: 4
    Last Post: March 21st, 2011, 08:04 AM