There are many plugins and one of them surely fits for your requirement. But, the main problem with plugins is that it slows down your website speed while loading. In this tutorial, we are not going to use any plugin to open any website in a new window from your WordPress website.
It needs only one line of code to be accurate. But the thing is that you have to go into Editor and insert a code in one of the files and that’s it. The code is given in this post to open any website in a new window.
So let’s get started without wasting time anymore.
Step 1: Go to Appearance > Editor section of your WordPress Dashboard.
Step 2: Find and open Footer.php file. (If you are using Genesis Themes then you have to Click on Genesis Link in Editor window first.)
Step 3: Insert code below at the end of the file. But before </body> Tag and don’t forget to replace the domain name in the code.
Step 4: Click on “Update file” button.
Step 5: That’s all.
One thing to remember is that if the user had blocked pop-ups for in the browser, then this trick will not work. He has to unblock this feature, then after this code will open a website in new window as soon as your website page loaded.
If you have any query regarding this post, then feel free to ask in the comment section. We will be glad to help you.
Enjoy & Stay Techie…