Schema.org 在假期/给定日期关闭 [英] Schema.org for closed on a holiday / given date
本文介绍了Schema.org 在假期/给定日期关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当企业在假期关闭时,我如何正确标记假期时间?
How do I properly markup holiday hours when a business is closed on the holiday?
正常假期时间标记示例:
Normal holiday hours markup example:
<li itemprop="openingHoursSpecification" itemscope="" itemtype="http://schema.org/OpeningHoursSpecification" class="holidayHours">
<span itemprop="validFrom" content="2014-05-26">Memorial Day Hours, Monday, May 26th: </span>
<span itemprop="validThrough" content="2014-05-26"></span>
<span itemprop="opens" content="09:00">9 am</span> - <span itemprop="closes" content="15:00">3 pm</span>
</li>
schema.org 或 Google 首选的节假日休息显示方式是什么?这是正确的吗?
What is the schema.org or Google preferred way to show closed on a holiday? Would this be 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: </span>
<span itemprop="validThrough" content="2014-05-26"></span>
<span itemprop="opens" content="00:00">CLOSED<span itemprop="closes" content="00:00"></span>
</li>
推荐答案
这是ld+json格式,但是说你圣诞节关门,就离开开场&关闭时间空白,就像我在下面的常规 openingHours
中所做的那样.这个测试业务星期天不营业,所以我根本没有进入任何时间.
This is the ld+json format, but say you are closed for Christmas, just leave the opening & closed hours blank, like I did for regular openingHours
below. This test business is closed Sunday, so I just don't enter any time for it at all.
...
"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": {
...
}
这篇关于Schema.org 在假期/给定日期关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文