Skip Navigation

[Closed] Display Business Hours and Open Closed Status based on time

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 1 voice.

Last updated by Christopher Amirian 8 months, 1 week ago.

Assisted by: Christopher Amirian.

Author
Posts
#2788484

Tell us what you are trying to do?
I am trying to display business hour based on specific day & also business Open or Closed status based on time.

Is there any documentation that you are following?
I cannot find any business hours block

Is there a similar example that we can see?

1 - hidden link
2 - hidden link

What is the link to your site?
hidden link

#2788529

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Welcome to Toolset support. As the hours might be different depending on the timezone the viewer looks from, the open/close check should be checked via Javascript in my opinion.

Please add a field, you can use a text field, to add for the opening hour and another field for the closing hour for the custom post in question.

Then use the views block to add those fields to the single template of the post type.

Then add extra text next to it which is static text. add an HTML like this:

<span class="open">Open Now</span><span class="close">Close Now</span>

Do that and get back to us with the link to the page, I will try to come up with a Javascript code that will hide one of the texts depending on the current hour and if it is inside the range or not.

Thanks.

The topic ‘[Closed] Display Business Hours and Open Closed Status based on time’ is closed to new replies.