Buy me a coffee

How to Redirect Squaresce Page

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

How To Redirect Squarespace Page 01 MinIn General > See URL Slug

How To Redirect Squarespace Page 02 MinIn my example, we will have:

  • Contact: /contact-us
  • Services – /services

#2. Hover on the Contact page > Click the Gear icon

How To Redirect Squarespace Page 03 Min#3. Click Advanced > Paste this code

How To Redirect Squarespace Page 04 Min

<script>
window.location.href = "/services";
</script>

 

#4. In case, you want to redirect the page on Mobile only, use this codeĀ 

How To Redirect Squarespace Page 05 Min

<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.

How To Redirect Squarespace Page 06 Min

<script>
         setTimeout(function(){
            window.location.href = '/services';
         }, 3000);
</script>