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.

open any website in new window

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.

go to Appearance and then editor in 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.)

footer.php file location in wordpress

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.

<script type=”text/javascript”>“”);


Step 4: Click on “Update file” button.

Update file in wordpress editor

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…