Suppose you have a page Contact, you want: when users access Contact >> It will redirect to the Services Page. You can follow these.
#1. First, find the Page URL of the Contact and Services Page.
You can hover on Contact or Services > Click the Gear icon
In General > See URL Slug
In my example, we will have:
- Contact: /contact-us
- Services – /services
#2. Hover on the Contact page > Click the Gear icon
#3. Click Advanced > Paste this code
<script> window.location.href = "/services"; </script>
#4. In case, you want to redirect the page on Mobile only, use this codeĀ
<script type="text/javascript"> if (screen.width <= 767) { document.location = "/services"; } </script>
#5. If you want to redirect after X seconds, you can use this code. 3000 = 3 seconds.
<script> setTimeout(function(){ window.location.href = '/services'; }, 3000); </script>