Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Auto Redirect from landing page after time


ccsw

Question

10 answers to this question

Recommended Posts

  • 2

Add to Landing page settings > advanced > Header

<script>
         setTimeout(function(){
            window.location.href = 'https://beaverhero.com';
         }, 5000);
</script>

 

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

Link to comment
  • 0
On 2/27/2020 at 2:05 AM, tuanphan said:

Add to Landing page settings > advanced > Header

<script>
         setTimeout(function(){
            window.location.href = 'https://beaverhero.com';
         }, 5000);
</script>

Hi Tuanphan, thanks for sharing the script, I wonder how I can turn it into 15 minutes instead of 2 seconds, can you help me? Thanks 🙂

Link to comment
  • 0
12 hours ago, Adrianadazz said:

Hi Tuanphan, thanks for sharing the script, I wonder how I can turn it into 15 minutes instead of 2 seconds, can you help me? Thanks 🙂

Hi. 1000 = 1 second, 5000 = 5 second

Do similar for 15 minutes = 300000

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

Link to comment
  • 0

Once this redirect code is in place, how do you make changes.  It still redirects in the builder/editor.  With it set to 5 seconds I don't have time to make a selection to edit anything like extending the time slightly. 

Link to comment
  • 0
16 hours ago, JimBeacham said:

Once this redirect code is in place, how do you make changes.  It still redirects in the builder/editor.  With it set to 5 seconds I don't have time to make a selection to edit anything like extending the time slightly. 

Hi. 1000 = 1 second, 5000 = 5 second

Do similar for 15 minutes = 300000

You can change it to 1000 minutes

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

Link to comment
  • 0

I understand the math of the delay.  I have added it into the page, and saved the page, making the code active.  It is working.  In fact, it is working so well, it causes the page to redirect within the SquareSpace editor.  How can I get the page to stay open in the editor long enough for me to make a change. 

 

Link to comment
  • 0
On 8/6/2021 at 12:35 AM, JimBeacham said:

I understand the math of the delay.  I have added it into the page, and saved the page, making the code active.  It is working.  In fact, it is working so well, it causes the page to redirect within the SquareSpace editor.  How can I get the page to stay open in the editor long enough for me to make a change. 

 

Okay. Can you paste the code what you use? We will try tweaking it

 

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

Link to comment
  • 0

Support directed me to a page that indicates that if you view the page in "safe" mode (enter safe behind the page URL) it will disable to script so you can edit the page. 

 

Thanks for your assistance in all of this. 

Edited by JimBeacham
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...