Menu links not opening in new tab

I’m using a pro header. Menu items set to open in new tab are triggering the Chrome popup blocker and just opening in the same window. In Firefox and Safari, there is no popup warning, it just opens in the same window. I’m 100% sure I have the “open in new tab” box checked for the menu items (going to page on same domain). Also, I inspected the menu item with developer tools and can see that the link does indeed have a target="_blank" attribute. This is only a problem with menus, not buttons.

You can see the menu on this page https://abuyerschoice.com/burlington

Hi @nolannp11,

I recommend the following troubleshooting procedures before we investigate the settings.

  1. TESTING FOR THEME RELATED ISSUE
  2. TESTING FOR PLUGIN CONFLICT
  3. THEME UPDATE
  4. CHILD THEME
  5. CSS/JS CUSTOMIZATION
  6. VERSION COMPATIBILITY

Only if none of that help, please give us the following information in a Secure Note.

  • WordPress Login URL
  • Admin level username and password

You can find the Secure Note button at the bottom of your posts.

Thank you.

I left a secure note with login information. I went through all the troubleshooting procedures you recommended without any resolution. Currently (on the staging site, can’t do this live) I disabled all plugins, removed all custom CSS and Javascript code from the customizer, set the theme back to Pro instead of Pro Child. Wordpress and Pro are updated to latest versions.

Hello @nolannp11,

I have checked your site and I can see that you have added a custom JS code:

jQuery(document).on('click', '.x-menu a.x-anchor-menu-item ', function(event){
    if(jQuery(event.target).hasClass('x-anchor-sub-indicator')) {
    	event.preventDefault();
    } else {
    	var url = jQuery(this).attr('href');
    	window.location = url;
    }
});

There must be something with your code which is why it is not working. Keep in mind that custom coding is beyond the scope of our support. You may need to contact the creator of this code and correct it.

Thank you for your understanding.

Thank you, I copied this header from another one I created a while back and can’t even remember why I put that code there. I guess I need to make better notations in my code. I commended out the code and that solved my problem. Thanks again!

Glad that we could be of help.

Cheers!

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