Schema.org Indoor Holidays / Dates

How to mark holiday hours when a business is closed on vacation?

Example of marking normal holiday hours:

<li itemprop="openingHoursSpecification" itemscope="" itemtype="http://schema.org/OpeningHoursSpecification" class="holidayHours"> <span itemprop="validFrom" content="2014-05-26">Memorial Day Hours, Monday, May 26th:&nbsp;</span> <span itemprop="validThrough" content="2014-05-26"></span> <span itemprop="opens" content="09:00">9 am</span>&nbsp;-&nbsp;<span itemprop="closes" content="15:00">3 pm</span> </li> 

What is the preferred way for schema.org or google to show private on vacation? Is it correct?

 <li itemprop="openingHoursSpecification" itemscope="" itemtype="http://schema.org/OpeningHoursSpecification" class="holidayHours"> <span itemprop="validFrom" content="2014-05-26">Memorial Day Hours, Monday, May 26th:&nbsp;</span> <span itemprop="validThrough" content="2014-05-26"></span> <span itemprop="opens" content="00:00">CLOSED<span itemprop="closes" content="00:00"></span> </li> 
+1
source share
3 answers

This is the ld + json format, but say you are closed for Christmas, just leave the open and closed hours empty, as I did for the usual openingHours below. This test business is closed on Sunday, so I just do not enter at this time.

  ... "telephone": "123-555-1212", "openingHours": "Mo,Tu,We,Th 09:00-19:00, Fr 09:00-20:00, Sa 09:00-18:00", { "@type": "OpeningHoursSpecification", "validFrom": "2015-12-25", "validThrough": "2015-12-25" }, "address": { ... } 
+1
source

I don’t know if this @Nathan has changed since the publication, but this is the only way to get https://developers.google.com/structured-data/testing-tool/ to check properly. By specifying "openingHoursSpecification" outside the brackets.

 "openingHours": "Mo,Tu,We,Th 09:00-19:00, Fr 09:00-20:00, Sa 09:00-18:00", "openingHoursSpecification": { "@type": "OpeningHoursSpecification", "validFrom": "2015-12-25", "validThrough": "2015-12-25" } 
0
source

You could handle it like that, Christopher, but in this situation you need to mark the time to seconds (00:00:00). This is because the business opens at 00:00:00 and closes at 00:00:01. Or another way to do this would be to simply indicate the days of the year when the business is open, and leave a mark for those days when the business is closed.

-1
source

Source: https://habr.com/ru/post/906351/


All Articles