Automatically open external links in new tab

Do you want to open all the external links of your website in a new tab ? If you say ‘YES“, just copy the  following code and paste it in your function.php file.



The aforementioned script excludes, if teljavascript.void(0), hash(#), mailto and site_url() are in the href of the anchor tag.

Hits: 18