kboon Posted February 21, 2022 Posted February 21, 2022 (edited) 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! Edited February 21, 2022 by kboon
Beyondspace Posted February 27, 2022 Posted February 27, 2022 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! 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? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
kboon Posted March 9, 2022 Author Posted March 9, 2022 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 Beyondspace 1
Beyondspace Posted March 10, 2022 Posted March 10, 2022 (edited) 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 March 10, 2022 by bangank36 creedon 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
kboon Posted March 12, 2022 Author Posted March 12, 2022 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
creedon Posted March 12, 2022 Posted March 12, 2022 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 the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment