# Change Home Page based on time

**URL:** <https://forum.wixstudio.com/t/change-home-page-based-on-time/6338>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [January 12, 2021, 12:07pm UTC](https://forum.wixstudio.com/t/change-home-page-based-on-time/6338 "2021-01-12T12:07:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickb](https://avatars.discourse-cdn.com/v4/letter/r/9e8a1a/32.png) [@rickb](https://forum.wixstudio.com/u/rickb)\
**Post date:** [January 12, 2021, 12:07pm UTC](https://forum.wixstudio.com/t/change-home-page-based-on-time/6338/1 "2021-01-12T12:07:08Z")

</div>

Hi, I am looking to create a way so that when users enter the website on a Sunday from 10 am till 12 pm it will take them to a landing page instead of the regular home page.

I think this might be possible by retrieving the user’s time when they first come in, but I am fairly new to HTML and Java, so I am not sure where to look.

Would it be possible to have this automatically change the home page on Wix or is there a work around?

Thank you.

---

<div class="post-metadata">

**Author:** ![yisrael-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yisrael-wix/32/1107_2.png) [@yisrael-wix](https://forum.wixstudio.com/u/yisrael-wix)\
**Post date:** [January 13, 2021, 9:23am UTC](https://forum.wixstudio.com/t/change-home-page-based-on-time/6338/2 "2021-01-13T09:23:05Z")

</div>

You can check the date and time using standard Javascript date and time functions, and based on the time, redirect to another page using [wix-location.to()](https://www.wix.com/velo/reference/wix-location/to) .

To learn about programming with Velo, read the following articles that will help you start working with Velo:

- [About Velo by Wix](https://support.wix.com/en/article/about-corvid-by-wix) - what Velo is and what features it has.

- [Getting Started with Velo by Wix](https://support.wix.com/en/article/getting-started-with-corvid-by-wix) - step-by-step tutorial on how to start using Velo.

- [Onboarding to Velo by Wix](https://support.wix.com/en/article/onboarding-to-corvid-by-wix) - introduction to Velo with short tutorials.

---

<div class="post-metadata">

**Author:** ![rickb](https://avatars.discourse-cdn.com/v4/letter/r/9e8a1a/32.png) [@rickb](https://forum.wixstudio.com/u/rickb)\
**Post date:** [January 13, 2021, 12:13pm UTC](https://forum.wixstudio.com/t/change-home-page-based-on-time/6338/3 "2021-01-13T12:13:01Z")

</div>

Thank you for the response! Hope I can put it to good use
