WordPress Tip ‘o The Day: Custom Menu Targets

WordPress dev’s, ever wished you could set the target on a custom menu item? I sure wish it was easier than doing some fancy jQuery-trapping and attribute-adding. Well, as it turns out, it is a lot easier.

Alex Chousmith from the WordPress Support Forums is my hero for finding this Easter Egg:

On /wp-admin/nav-menus.php , click on the link for Screen Options in the top right of your screen. Hidden away in the dropdown there, below the usual Show on screen checkboxes, is another line of Show advanced menu properties checkboxes.

Just check the box for Link Target and then all your Menu Items will have the additional option of Link Target : “Same window or tab” or “New window or tab”

Here’s a visual of how this looks (click for larger view):

Leave a Reply