Jump to content
Sign in to follow this  
stefanoferruggiara

Css code on secondary menu doesn't work

Recommended Posts

stefanoferruggiara

Hello there, i use firebug and the tutorial and i found this code for personalize my menu but doesn't work. This work: #secondnav ul li a { background-color: #336699 !important; color: #fff !important; } #secondnav ul li a:hover { background-color: #f37e2a !important; color: #fff !important; } This not: #secondnav ? .current-menu-item a, ? .current-menu-item ? ul li a:hover { ?  ? background-color: ##f37e2a !important; ?  ? color: #fff !important; } #secondnav .current-menu-item ul li a { background-color: #f37e2a !important; color: #fff !important; } I would like to know if there any syntax error or similar in the second part. Thanks B-) see there: http://www.coaching-formazione.info/nbs/


"Se c'è una sola possibilità.. lo faccio, se non c'è.. la creo!"

Coach Stefano Ferruggiara, Allenatore Fisico & Mentale

Share this post


Link to post
Share on other sites
Danny
Hi Stefano, There was a slight error in your CSS, if you use mine below, it should solve the issue and you can see where you went wrong. [code]#secondnav ul li.current_page_item a { background-color: #F37E2A; color: white; }[/code]

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
stefanoferruggiara
Ok Thanks! I post the full code for public interest. This is what in my theme work (pagelines framework) and you can see there: http://www.coaching-formazione.info/nbs The code of my secondnav menu is this: #secondnav ul li a { background-color: #336699 !important; color: #fff !important; } #secondnav ul li a:hover { background-color: #f37e2a !important; color: #fff !important; } #secondnav ul li.current-menu-item a, ul li.current-menu-item a:hover { ?  ? background-color: #f37e2a !important; ?  ? color: #fff !important; } #secondnav ul li.current_page_item a { background-color: #f37e2a !important; color: #fff !important; } Thanks Danny!

"Se c'è una sola possibilità.. lo faccio, se non c'è.. la creo!"

Coach Stefano Ferruggiara, Allenatore Fisico & Mentale

Share this post


Link to post
Share on other sites
Danny
Hi Stefano, No problem, happy to help.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×