Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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

    #1476155

    Hey 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;
    }

    Screen Shot 2025 02 01 at 8.42.35 PM
    Screen Shot 2025 02 01 at 8.44.11 PM
    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,
    Mike

    #1476166

    Wow, that’s cool!
    Can you tell me how to figure out the menu-id?

    Thank you and best regards!

    #1476169

    Hi,
    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
    Screen Shot 2025 02 02 at 8.03.35 AM
    If you have trouble, link to your page so we can examine.

    Best regards,
    Mike

    #1476684

    Awesome! 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.de

    Best regards

    #1476690

    Hi,
    Try adding this css:

    ul.menu li a:hover .avia-menu-text {
        border: none;
    }

    Best regards,
    Mike

    #1476718

    Thanks, almost perfect. Now the left separator is missing on hover ;)

    #1476721

    Hi,
    True, I didn’t find a solution for that.

    Best regards,
    Mike

    #1476757

    No chance?

    #1476762

    Hi,
    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,
    Mike

    #1476764

    You are the king! Thank you soooo much! It’s perfect and I am very happy :)

    Topic can be closed

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Change Menu Text on Hover’ is closed to new replies.