Tagged: x
-
AuthorPosts
-
March 3, 2017 at 1:11 pm #1393649
JohannesVogtParticipantHi!
I use the superfly menu to show some information. Therefore I’d like to deactivate specific links in the submenu because they are only there to toggle the content bar but don’t lead anywhere. If I leave they empty in the menu settings, it doesn’t have any effect. They are still clickable but just oben a blank page.
The url is: http://bueroweltmichel.unplugged-band.com
I assume this can be done by CSS, but I don’t know the class of the submenus.
I hope you can help me.
March 4, 2017 at 12:03 am #1394142
RadModeratorHi there,
Thanks for writing in.
Tried with preventDefault() which is usually the way of turning off the linking. But it’s not working, tried listing the attached event to those menu items and it returns undefined. Could you try adding
javascript:void(0);as the menu link?Thanks!
March 4, 2017 at 11:01 am #1394478
JohannesVogtParticipantHi,
adding javascript:void(0); did the job perfectly. The only thing I’d still like to do is to change the cursor. At the moment it still changes the cursor on hover like it would with a normal link. I thought of this:
.not-active {
pointer-events: none;
cursor: default;
}The only thing is that I don’t know the CSS class for the submenu. Do you think this could work?
March 5, 2017 at 1:36 am #1394841
RadModeratorHi there,
Please try this one
.sfm-has-child-menu a { pointer-events: none; cursor: pointer; cursor: hand; }Thanks!
March 5, 2017 at 7:15 am #1395033
JohannesVogtParticipantHi,
this doesn’t help unfortunately. 🙁
March 5, 2017 at 8:52 am #1395086
ThaiModeratorHi There,
Please try with this CSS:
a:not(.sfm-active-item){ pointer-events: none !important; cursor: default !important; }Hope it helps 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1393649 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
