我试图将这个 json-ld 块应用到 Wix 网站,但它一直拒绝它。 我知道它并不漂亮,但它已经通过了丰富的结果测试和模式测试。 不明白为什么 Wix 不接受它。
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "ProfessionalService",
"additionalType": "Equipment Hire",
"name": "Territory Plant Hire",
"telephone": "(08) 8983 1566",
"image": "https://static.wixstatic.com/media/3b1c21_c6a0e28bf7b3412983cdecc6be7bb2ea~mv2.jpg",
"description": "Territory Plant hire is a quality machinery and equipment rental company based in Darwin supplying the Northern Territory",
"url": "https://www.territoryplanthire.com.au/services-page",
"Address": {
"@type": "PostalAddress",
"streetAddress": "666/668 Stuart Hwy",
"addressLocality": "Darwin",
"addressRegion": "NT",
"postalCode": "0828",
"addressCountry": "AU"
},
"areaServed": [
"Katherine",
"Humpty Doo",
"Gove",
"Nhulunbuy",
"Tennant Creek",
"Tindal",
"Kununurra",
"Groote Eylandt",
"Halls Creek",
"Mataranka",
"Mount Isa",
"Borooloola"
],
"hasOfferCatalog": {
"@type": "OfferCatalog",
"name": "Hire services",
"itemListElement": [
{
"@type": "OfferCatalog",
"name": "Rental equipment",
"itemListElement": [
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Boom Knuckle Lift Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Bull Dozer Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Excavator Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Grader Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "IT Loader Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Rock breaker Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Steam Roller Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Scissor Lift Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Water Cart Truck Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Skid Steer Bob Cat Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Stand Pipe Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Tipper Truck Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Vacuum Truck Trailer Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Side Tipper Hire Rental"
}
}
]
}
]
}
}
}
}
},
</script>
在两个月的时间里,我已经重写了这个块大约二十次(如果你相信的话,有时会更长、更混乱),这是最新的重申。
我已经两次差点毁掉我的办公室了,我可能还哭了一会儿。
基本上我需要它来告诉谷歌怪物我们做什么以及我们在哪里做。 这是我能找到的唯一方法,但 Wix 出于某种原因顽固地拒绝接受这个数组和类型?
不断提示我“标记只能采用 JSON-LD 格式。”错误,即使它是用 Json-ld 写得非常清楚。也无法在网上找到任何有关此问题的信息。所以那里也没有帮助。
试试这个:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "ProfessionalService",
"additionalType": "Equipment Hire",
"name": "Territory Plant Hire",
"telephone": "(08) 8983 1566",
"image": "https://static.wixstatic.com/media/3b1c21_c6a0e28bf7b3412983cdecc6be7bb2ea~mv2.jpg",
"description": "Territory Plant hire is a quality machinery and equipment rental company based in Darwin supplying the Northern Territory",
"url": "https://www.territoryplanthire.com.au/services-page",
"Address": {
"@type": "PostalAddress",
"streetAddress": "666/668 Stuart Hwy",
"addressLocality": "Darwin",
"addressRegion": "NT",
"postalCode": "0828",
"addressCountry": "AU"
},
"areaServed": ["Katherine", "Humpty Doo", "Gove", "Nhulunbuy", "Tennant Creek", "Tindal", "Kununurra", "Groote Eylandt", "Halls Creek", "Mataranka", "Mount Isa", "Borooloola"],
"hasOfferCatalog": {
"@type": "OfferCatalog",
"name": "Hire services",
"itemListElement": [
{
"@type": "OfferCatalog",
"name": "Rental equipment",
"itemListElement": [
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Boom Knuckle Lift Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Bull Dozer Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Excavator Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Grader Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "IT Loader Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Rock breaker Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Steam Roller Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Scissor Lift Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Water Cart Truck Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Skid Steer Bob Cat Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Stand Pipe Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Tipper Truck Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Vacuum Truck Trailer Hire Rental"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Side Tipper Hire Rental"
}
}
]
}
]
}
}
</script>
当您遇到此类问题时,请尝试使用此链接中的 json-ld 游乐场。只需将您的代码粘贴到那里,它就会显示您在哪一行有错误。