Help with Nav Menu Hover – HTML
-
I’m trying to add a custom data attribute to the
<a>
element. What I’m trying to do is integrate the navigation effect in this CodePenI can do all the CSS but I need to add the HTML part such as below:
<ul class="snip1226"> <li class="current"><a href="#" data-hover="Home">Home</a></li> <li><a href="#" data-hover="About Us">About Us</a></li> <li><a href="#" data-hover="Blog">Blog</a></li> <li><a href="#" data-hover="Services">Services</a></li> <li><a href="#" data-hover="Products">Products</a></li> <li><a href="#" data-hover="Contact">Contact</a></li> </ul>
How and where would I add this into WordPress? What would I need to edit to add this HTML functionally?
As you can see without the above HTML the menu hover does not work as expected.
Thanks,
Harvey
The page I need help with: [log in to see the link]
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Help with Nav Menu Hover – HTML’ is closed to new replies.