Navigation überspringen

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

This support ticket is created vor 1 year, 6 months. There's a good chance that you are reading advice that it now obsolete.

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.

Dieses Thema enthält 1 reply, hat 1 Stimme.

Zuletzt aktualisiert von Christopher Amirian vor 1 year, 6 months.

Assistiert von: Christopher Amirian.

Author
Artikel
#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 - versteckter Link
2 - versteckter Link

What is the link to your site?
versteckter Link

#2788529

Christopher Amirian
Unterstützer

Sprachen: Englisch (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.