Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1232197
    ThePlague
    Participant

    Hey 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?

    #1232200
    ThePlague
    Participant
    This reply has been marked as private.
    #1232602
    Rupok
    Member

    Hi 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.

    #1233829
    ThePlague
    Participant

    Thanks 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?

    #1234308
    Rad
    Moderator

    Hi 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!

    #1234346
    ThePlague
    Participant

    Right, 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.

    #1234454
    Lely
    Moderator

    Hi 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.

  • <script> jQuery(function($){ $("#no-reply-1232197 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>