Alright, I’ve dropped the links i want opened with _parent target into a specifically named div.
Now i’ve added a jquery script to my header that should open all external links in the specific div in the _parent window.
So, the question is how do I modify this to just be all links external and internal. would I remove the http:// from between the ” marks?
*This has some nasty effects. the iframe moves, then the _parent page moves. meaning two back button clicks to get back. and if you only hit it once, you get forwarded again..
So, I put in a trac request to add _parent or _top top the advanced link target options in the menu editor (currently there is only _self, and _blank).
But, I can’t wait while we debate if frames are “too 1995” to add the rest of the $args for ‘target options’, so I have built a custom walker..
Hope this helps: My post outlining building a custom walker and adding _top or _parent target attributes
- The topic ‘add target _top to wp_nav_menu link attributes’ is closed to new replies.