How do you direct a menu bar item to open in a NEW TAB? Some of the menu options on my main navigation bar need to lead offsite but I don’t want them to open in the existing browser window, rather I would like them to open in a _blank tab.
This topic was modified 4 years, 1 month ago by shortninja.
Thank you for the response! The hack code you sent works, however this code applies the “_blank” to ALL the menu buttons which won’t work well for this website. My client needs only a select few of the menu buttons to open in a new tab, and the rest need to function normally opening in the same browser. In other WP themes I’ve used there is a checkbox option on the menu item that you can select to have just that particular individual menu button open in a new browser, without effecting the rest of the menu. I’m guessing this is a pretty standard feature. Here is a screenshot of what it should look like: http://www.shannonames.com/dev2/wp-content/uploads/2013/12/menu_option_screenshot.jpg
Is it possible the menu creation interface is an older version? If so how would I update this to the current version that provides this function?
When viewing the menu administration page, click on Screen Options (top right), and check the box labelled Link Target under the Show advanced menu properties heading. then option ‘Open link in a new window/tab’ will show,
Hi again…is there also an option to make the individual “buttons” from the button module to lead to a ‘_blank’ new tab? If not, do you have a custom code I can add and if so where do I add it? Thank you!