Automatically Redirect From Any Page to Any Website / Domain in WordPress Without Any Plugins

Published: 24 April 2023
on channel: Reialesa
14,613
189

The JavaScript required to do this is pinned 📌 to the top comment.

What I use to build amazing websites:
Elementor (the best WordPress page builder): https://be.elementor.com/visit/?bta=2...
Awesome, affordable hosting (the server your website needs to exist): https://www.hostg.xyz/SHGec

Relevant videos:
How to redirect users to a custom thank you page after checkout in WooCommerce:    • Redirect to a Custom Thank You Page A...  
How to create a child theme in WordPress:    • The Fastest, Easiest Way to Create a ...  

🗞️ Subscribe to my newsletter: https://www.reialesa.com/newsletter/

Automatically redirecting your users somewhere can be very important. Redirecting to different pages after they purchase a product in your WooCommerce store is simple enough and, with many page builders, so is redirecting them after they fill out a form. But these redirects only work for the pages on the original domain, the one that's doing the redirecting, not for external websites. And they're instant, they happen right away and you can't delay them.

Well, with just a little bit of effort, you can easily redirect your users to any page, any website and any domain you want to. Automatically, of course. And you can make it happen right away, or you can delay it by however long you want. And you have two ways to do so. The first is by adding in a bit of JavaScript to your page directly and the second is by adding it into your functions.php file - which is the way I prefer, because I get to control everything from one place.

Make sure you use a child theme and back up your WordPress website before doing this!

#WordPress #redirect #automaticredirect

Get in touch:
https://www.reialesa.com/youtube/

Don’t be shy! Let me know what you’d like to see next, ask me anything related to design or just simply say hi.

Please note that some of the above are affiliate links, which means I earn a commission if you make a purchase, at no additional cost to you. Thank you very much if you decide to use them!


Watch video Automatically Redirect From Any Page to Any Website / Domain in WordPress Without Any Plugins online, duration hours minute second in high quality that is uploaded to the channel Reialesa 24 April 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 14,613 times and liked it 189 visitors.