Tagged: x
-
AuthorPosts
-
October 26, 2016 at 5:13 pm #1232197
ThePlagueParticipantHey guys. I’ve got a question about uber menu.
I’ve got my site set up so that when I do a left click on a menu item, it scrolls to a section on the page -or- opens in a new page depending on the item. When I do a right click on the scroll to items in my navigation bar (home/videos/tour/$), and click open in a new page however, it takes me to a back page of my site. I don’t want people to accidentally click this, and think it’s a glitch.
How can I eliminate the right click option on the scroll to items, while maintaining the cool pointer hand indicator that shows up when I hover my menu items?
October 26, 2016 at 5:14 pm #1232200
ThePlagueParticipantThis reply has been marked as private.October 26, 2016 at 11:16 pm #1232602
RupokMemberHi there,
Thanks for writing in! Disabling right click won’t be usual. But if you still want, you can add this under Custom > JavaScript in the Customizer.
jQuery ( function( $ ) { $('#menu-item-290, #menu-item-290, #menu-item-268').on("contextmenu",function(e){ return false; }); } );Hope this helps.
October 27, 2016 at 4:35 pm #1233829
ThePlagueParticipantThanks for the reply,
I’ve added the above code into the Javascript section, and it doesn’t appear to be working on any of the menu items except for the one labeled “tour”.
I’m not very experienced with this, Am I supposed to find additional menu items and add them to this code somehow?
October 28, 2016 at 12:49 am #1234308
RadModeratorHi there,
How should it behave? Currently, when I click it, it scrolls but when right clicked it opens the context menu. Would you mind providing a video recording what’s happening on your end?
Thanks!
October 28, 2016 at 1:41 am #1234346
ThePlagueParticipantRight, exactly right. That’s what I’m seeing as well. I’m asking if there is a way to bypass the context menu, I don’t want people to accidentally stumble onto those sections at the moment.
right click section “videos” in menu bar—-> open link in a new tab—-> (page that i dont want people to see)
Thank you.
October 28, 2016 at 3:21 am #1234454
LelyModeratorHi There,
Just to clarify, you just want the menu to go to specific section and not to those link like this:http://theplagueofficial.com/media/. If yes, please use Custom Link on Appearance > Menu and not Page. Replace those current page link with Custom Menu links. See attached screenshot.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1232197 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
