Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Drop down link hover colour

Featured Replies

http://www.mangofundraising.com/

 

I've been trying to get the drop down links to change colour on hover but no success. (Main Nav > Our Services)

 

Any help greatly appreciated.

 

There's a css stylesheet and a custom css stylesheet. I think the custom one overrides the css one. This may be making it harder than it needs to be to make these changes.

Your stylesheets are being overridden by the "Woo Custom Typography" style block in the HTML, because it's inline and the rules use !important.

  • Author

Thanks Renaissance, I think I understand that.

 

So are you saying it cannot be done? ie have a hover effect on the drop down menu.

#navigation .nav li ul li a:hover {
 color: #ff0000 !important;
}

 

should do the trick, hopefully.

Edited by Renaissance-Design

  • Author

Thanks Renaissance, works a treat.

 

This has created another minor issue now however - is there any way to disable the hover effect on the parent link "our services"? I have a plugin installed that disables the parent link but it doesnt disable the hover effect. Any suggestions?

 

http://www.mangofundraising.com/

Thanks Renaissance, works a treat.

 

This has created another minor issue now however - is there any way to disable the hover effect on the parent link "our services"? I have a plugin installed that disables the parent link but it doesnt disable the hover effect. Any suggestions?

 

http://www.mangofundraising.com/

 

All the important tags are annoying.

 

Try

#navigation .nav li ul li a.sf-with-ul:hover {
color: inherit !important;
}

Edited by Samus

Samus

 

I tried putting this into the css but doesnt seem to have any effect.

 



#navigation .nav li ul li a.sf-with-ul:hover {
color: #ff0000 !important;
}

?

Edited by Samus



#navigation .nav li ul li a.sf-with-ul:hover {
color: #ff0000 !important;
}

?

 

works for me in firebug have you cleared the cache?

  • Author

Still not working for me. Yes, cache cleared.

 

When I put this code in shoud I be replacing other code or just adding it? I have just added it.

  • Author

I take it you have it working, its working for me on your site

 

No, its not working. The parent link 'our services' still changes to orange on hover. This shouldnt happen because its not a link.

You are targeting the id navigation so all the navigation will change on hover

 

Edit: but it is in a anchor tag

 

<a href="http://www.mangofundraising.com/?page_id=8">our services</a>

Edited by ELITE

  • Author

Should I remove the anchor tag or replace it with something else?

 

Having said that though, I wouldn't know how to do this as this is a Wordpress site and this navigation is created automatically.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.