Jump to content

Timebased opening hours display on or above navheader

Recommended Posts

Hi,

our opening hours are the following

Monday 8:00 till 16:00
Tuesday 8:00 till 16:00
Wednesday 8:00 till 16:00
Thursday  8:00 till 16:00
Friday  8:00 till 16:00


I want to create an element above or in my nav header that says during the opening hours that we are open till the time we are closed, for example: "open - today till 16:00".
when we are closed is should say closed and then the next time that we are open. for example, we are saturday then the element should say "closed - open on Monday at 8:00".

it would also be nice if there is a image I can set for open closed in front of the text.
I saw this element on another website but i would like to style it to my preference
I included a image with the element on (litte warning, the text is in dutch)

im not familiar with code at all, so I am hoping that someone can provide me some help that I can copy/paste some stuff you are sending me 😁

Thank you in advance!

Schermafbeelding 2022-02-21 om 10.35.59.png

Edited by kboon
Link to comment
On 2/21/2022 at 4:48 PM, kboon said:

Hi,

our opening hours are the following

Monday 8:00 till 16:00
Tuesday 8:00 till 16:00
Wednesday 8:00 till 16:00
Thursday  8:00 till 16:00
Friday  8:00 till 16:00


I want to create an element above or in my nav header that says during the opening hours that we are open till the time we are closed, for example: "open - today till 16:00".
when we are closed is should say closed and then the next time that we are open. for example, we are saturday then the element should say "closed - open on Monday at 8:00".

it would also be nice if there is a image I can set for open closed in front of the text.
I saw this element on another website but i would like to style it to my preference
I included a image with the element on (litte warning, the text is in dutch)

im not familiar with code at all, so I am hoping that someone can provide me some help that I can copy/paste some stuff you are sending me 😁

Thank you in advance!

Schermafbeelding 2022-02-21 om 10.35.59.png

Have you considered the case when client user access your site from other countries with different time zone? How do we display them on your site?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 2 weeks later...
On 2/27/2022 at 4:18 PM, bangank36 said:

Have you considered the case when client user access your site from other countries with different time zone? How do we display them on your site?

Our website does not have the intention that it would be visited from other countries than domestic, so no

Link to comment

It requires to add some js code (only available on business plan or higher) to get the current time and compare it with your open and close time. Combining with some css code to display the current time on your site

Hope that it makes senses

Edited by bangank36

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
On 3/10/2022 at 4:48 PM, bangank36 said:

It requires to add some js code (only available on business plan or higher) to get the current time and compare it with your open and close time. Combining with some css code to display the current time on your site

Hope that it makes senses

Like I mentioned in my first post, I am not familiar with code. Unfortunately it did not made sense

Link to comment
On 3/10/2022 at 7:48 AM, bangank36 said:

It requires to add some js code

In this case js code stands for JavaScript which is a programming language used mainly for altering web pages.

Using JavaScript, HTML and CSS, it may be possible to add the feature you want.

Please post the URL for a page on your site where we can see your issue.

If your site is not public please set up a site-wide password, if you've not already done so.

Post the password here.

Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site. Please read the documentation at the link provided to understand how it works.

Please read the documentation at the link provided on how to share a link to your site to understand how it works. A link to the backend of the your site won’t work for us, i.e. a url that contains /config/.

We can then take a look at your issue.

Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support!

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

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.