How to open menu link in new tab or window in wordpress
one of my friend asked that is there a simple way to get a link on my menu to open in a new tab or window? (I know how to do it with regular links but not with menu links.) i think she is not the only who want the answer of this question and believe me its answer is so easy.
Must Read :: How to solve Error 500 – Internal Server Error in WordPress?
How to open menu link in new tab or window in wordpress: When you are on the menu page in WordPress dashboard, there is a Screen Options at the right top corner. Click it and select the ‘Link Target’ in ‘Advance menu properties’. You will see the link target dropdown in the menu item below. Select open in new tab for your menu item…
For regular links…..
If you are using visual editor of WordPress then while creating any link it will ask you for target
Open in new window
Open in same window……….so choose according to your needs.
But if you want to create a link in HTML formats so target=”_blank” is to use in html…
For example (general link)
<a href=”http://theabeda.com” title=”Blog for Bloggers”>WordPress Expert</a> = WordPress Expert
(Open in new tab – Targeted link)For this just change a little in your html link add target=”_blank”
<a href=”http://theabeda.com” target=”_blank” title=”WordPress Expert”>WordPress Blog Expert </a>
thanks and i hope this guide will work for you if you are running WordPress 4.2.2 or Older.