Remove link and hover effect form menu item

Hi there see:

I have a phone number as a menu item, how do I remove the hover effect on that item only? (ie make it unclickable)

Thanks

Hey There,

Please go to X/Pro > Theme Options > CSS and add following custom CSS:

.menu-item-239 a:hover { box-shadow:none; }

This will remove the hover effect. All the best!

Hi thanks, it didnt work:

@media (max-width: 500px){
    .x-brand img {
        width: 250px;
    }
}
.x-colophon {
    background-color: #002e47;
}
div.wpforms-container-full .wpforms-form .wpforms-required-label {
    color: #ff0000;
    font-weight: 900;
  font-size: 22px
}
.menu-item-239 a:hover { box-shadow:none; }

Is my code…

also how do I remove the “link” ? even if this works, it will still be clickable, I dont want it to be.

Hi @logoglo,

Please update the code to this one:

.menu-item-239 a:hover {
    box-shadow: none !important;
    color: #002e47 !important;
    pointer-events: none;
} 

Hope that helps.

Thank you.

Nearly there, its now glitching a little on the mouse pointer…

Hello @logoglo,

Please have the code given by @marc_a updated and use this instead:

.menu-item-239 a {
    pointer-events: none;
}

.menu-item-239 a:hover {
    box-shadow: none !important;
    color: #002e47 !important;
} 

Kindly let us know if this has worked for you.

Worked perfectly thanks!

Glad to hear that, @logoglo!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.