In my WordPress theme I had a hover effect on my top menu but then it suddenly stopped working and I don’t know why, so I tried to inspect element to see what was going on and also tried to add a css class like this to try to get the over effect back:
#navigation li a:hover{color:#b0d719 !important;}
But it’s not working, then I realized something in html… those cufon and canvas thing which I don’t know what it is and also don’t know how to overwrite them to accomplish this to get the hover effect back again on the navigation bar.
Here’s my website link and here’s a image preview where this is happening as well
I don’t know that library, but I think that removing the following code will solve your problem:
There are some other
Cufon.replace
calls you may want to remove.Also, if you don’t want that library, you could remove
but it may break your
script.js
andtheme.js
scripts.Well after a few tests removing shorts of codes and stuff I just figured it out. I had this code above of all of those JS scripts and CSS as well in header
Then I removed it and the hover effect worked well, so I moved this to below of all of the Js and CSS placed in the header and it is working now, but still don’t know why is this, neither what’s the reason of doing that, still I would like to know