Open external redirects in new window

Step 1: Add the redirects #

First, register all the redirects using your preferred redirect plugin. Safe Redirect Manager is a good option.

Step 2: Add functions.php code #

Add the following code to your functions.php file:

Step 3: Add javascript code #

Add the following code to the javascript file from your child theme:

Step 4: Create the pages and enable the feature #

Finally, create a page for each redirect. Make sure that the page has the origin URL of the redirect.

When creating the page, check the checkbox in the “Redirect Opens New Tab” box.

Powered by BetterDocs

Newsletter

Subscribe and stay connected through our Newsletter. We send out important news, tips and special offers.

  • This field is for validation purposes and should be left unchanged.