
-
AuthorPosts
-
February 1, 2025 at 2:47 pm #1476144
Hello,
Is it possible to change the menu text on hover?
For example, the menu text says “Go,” and on hover, it changes to “Stop.”Best regards
February 2, 2025 at 2:45 am #1476155Hey northorie,
To change the menu text of the “home” menu item from “home” to “go” on hover, you will first need to know the menu item ID,
for example “#menu-item-3638” then adjust this css to suit:ul.menu li#menu-item-3638 a:hover .avia-menu-text { color: transparent; justify-content: center; display: inline-flex; flex-direction: column-reverse; } ul.menu li#menu-item-3638 a:hover .avia-menu-text::after { content: "Go"; color: black; justify-content: center; display: inline-flex; }
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
After applying the css, please clear your browser cache and check.Best regards,
MikeFebruary 2, 2025 at 1:19 pm #1476166Wow, that’s cool!
Can you tell me how to figure out the menu-id?Thank you and best regards!
February 2, 2025 at 2:11 pm #1476169Hi,
Go to your menu item and hover over the “remove” link, then at the bottom of the page the link URL will show, look for the ID number, like:
/wp-admin/nav-menus.php?action=delete-menu-item&menu-item=3638&_wpnonce=265b3adf4c
note the text: menu-item=3638, 3638 is the ID, use it in the css like this: #menu-item-3638
If you have trouble, link to your page so we can examine.Best regards,
MikeFebruary 8, 2025 at 3:01 pm #1476684Awesome! Thank you so much! It’s exactly what I needed :)
But I have a strange extra line on hover. Would you kindly check? https://www.traumwandel.deBest regards
February 8, 2025 at 4:07 pm #1476690Hi,
Try adding this css:ul.menu li a:hover .avia-menu-text { border: none; }
Best regards,
MikeFebruary 8, 2025 at 7:48 pm #1476718Thanks, almost perfect. Now the left separator is missing on hover ;)
February 8, 2025 at 7:54 pm #1476721February 9, 2025 at 1:33 pm #1476757No chance?
February 9, 2025 at 2:11 pm #1476762Hi,
Try adding this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:.av_seperator_small_border .av-main-nav>li>a>.avia-menu-text { border-right-style: solid; border-right-width: 1px; padding-right: 13px; margin-right: -13px; }
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
After applying the css, please clear your browser cache and check.Best regards,
MikeFebruary 9, 2025 at 2:16 pm #1476764You are the king! Thank you soooo much! It’s perfect and I am very happy :)
Topic can be closed
-
AuthorPosts
- The topic ‘Change Menu Text on Hover’ is closed to new replies.