Open All Links in New Windows

 In Themes

Open All Links in New Windows

I am personally not a fan of opening links in new windows – I think it should be left for the user to decide, as I explained in this post. But I’m not one to judge, so if you want to do it, use this simple code snippet:



One thing I should add is that the above HTML is not XHTML strict compliant. If you do want to be compliant, you should use the plugin.

Nuno Sarmento
I am full-stack WordPress developer based in London with a wealth of theme development and support experience. I am great at problem solving and developing quick solutions. I specialise in custom WordPress theme development and bug fixing.
Recommended Posts

Leave a Comment

Start typing and press Enter to search