Hello,
I cleared all of the caches and added the code,
It does not work for the live version of the site.
For custom CSS/JS code it gives me 2 warnings:
1) element ul.mega-sub-menu is overqualfied, just use mega-sub-menu without the element name
2)Fallback background (hex or RGB) should precede RGBA background. Use of !importnant
It works fine for my local host site, before I used W3 total cache to minimize CSS and html, enabled cache.
Could minimizing be the cause of the problem?