经营品牌: 强力巨彩 海佳彩亮 飞利浦 利亚德 创维 京东方 海康威视 仰邦 诺瓦 卡莱特 小鸟羽控
027-89992224
LED显示屏专业解决方案服务商
Professional solution service provider

shopxo结构化数据

[复制链接]
王铭 发表于 1 小时前 | 显示全部楼层 |阅读模式
在</head>之前添加以下代码
  1. <!-- ===== JSON-LD 结构化数据 ===== -->

  2. <!-- 1. LocalBusiness(全站,含地址电话行业) -->
  3. <script type="application/ld+json">
  4. {
  5.     "@context": "https://schema.org",
  6.     "@type": "LocalBusiness",
  7.     "name": "武汉彩亮光电科技有限公司",
  8.     "url": "https://www.dzping.com",
  9.     "logo": "{{$home_site_logo}}",
  10.     "image": "{{$home_site_logo}}",
  11.     "description": "LED屏伙伴线上查价系统,定位为LED显示屏行业的综合服务入口,旨在解决led大屏采购、选型及售后维修,提供LED显示屏价格查询、规格书下载、供应链资源对接等全方位一站式服务。",
  12.     "telephone": "027-89992224",
  13.     "address": {
  14.         "@type": "PostalAddress",
  15.         "streetAddress": "洪山区白沙洲大道华中城15栋4楼",
  16.         "addressLocality": "武汉市",
  17.         "addressRegion": "湖北省",
  18.         "postalCode": "430071",
  19.         "addressCountry": "CN"
  20.     },
  21.     "knowsAbout": "LED显示屏制造与批发销售",
  22.     "contactPoint": {
  23.         "@type": "ContactPoint",
  24.         "telephone": "133 4343 9696",
  25.         "contactType": "customer service",
  26.         "availableLanguage": "Chinese"
  27.     },
  28.     "sameAs": ["https://www.dzping.com","https://www.leddxs.com","https://www.ledwang.com.cn"]
  29. }
  30. </script>

  31. <!-- 2. WebSite(全站) -->
  32. <script type="application/ld+json">
  33. {
  34.     "@context": "https://schema.org",
  35.     "@type": "WebSite",
  36.     "name": "{{$home_site_name}}",
  37.     "url": "{{$home_url}}"
  38. }
  39. </script>

  40. <!-- 3. BreadcrumbList(有面包屑数据时输出) -->
  41. {{if !empty($breadcrumb_data) && is_array($breadcrumb_data)}}
  42. <script type="application/ld+json">
  43. {
  44.     "@context": "https://schema.org",
  45.     "@type": "BreadcrumbList",
  46.     "itemListElement": [
  47.         {
  48.             "@type": "ListItem",
  49.             "position": 1,
  50.             "name": "首页",
  51.             "item": "{{$home_url}}"
  52.         }
  53.         {{foreach $breadcrumb_data as $k=>$v}}
  54.         ,{
  55.             "@type": "ListItem",
  56.             "position": {{:$k+2}},
  57.             "name": "{{$v.name}}",
  58.             "item": "{{:isset($v['url']) && !empty($v['url']) ? $v['url'] : $my_view_url}}"
  59.         }
  60.         {{/foreach}}
  61.     ]
  62. }
  63. </script>
  64. {{/if}}

  65. <!-- 4. Product(仅在商品详情页输出) -->
  66. {{if !empty($goods) && is_array($goods)}}
  67. <script type="application/ld+json">
  68. {
  69.     "@context": "https://schema.org",
  70.     "@type": "Product",
  71.     "name": "{{$goods.title}}",
  72.     "description": "{{$home_seo_site_description}}",
  73.     {{if !empty($goods.model)}}
  74.     "sku": "{{$goods.model}}",
  75.     {{/if}}
  76.     "image": "{{$goods.images}}",
  77.     "offers": {
  78.         "@type": "Offer",
  79.         "url": "{{$my_view_url}}",
  80.         "priceCurrency": "CNY",
  81.         "price": "0",
  82.         "availability": "https://schema.org/InStock"
  83.     }
  84. }
  85. </script>
  86. {{/if}}

  87. <!-- 5. Article(仅在文章详情页输出) -->
  88. {{if !empty($article) && is_array($article) && isset($article.title)}}
  89. <script type="application/ld+json">
  90. {
  91.     "@context": "https://schema.org",
  92.     "@type": "Article",
  93.     "headline": "{{$article.title}}",
  94.     "description": "{{if !empty($article.simple_desc)}}{{$article.simple_desc}}{{elseif !empty($article.seo_desc)}}{{$article.seo_desc}}{{else /}}{{$home_seo_site_description}}{{/if}}",
  95.     {{if isset($article.add_time) && !empty($article.add_time)}}
  96.     "datePublished": "{{$article.add_time}}",
  97.     {{/if}}
  98.     "author": {
  99.         "@type": "Organization",
  100.         "name": "{{$home_seo_site_title}}"
  101.     },
  102.     "publisher": {
  103.         "@type": "Organization",
  104.         "name": "{{$home_seo_site_title}}",
  105.         "logo": {
  106.             "@type": "ImageObject",
  107.             "url": "{{$home_site_logo}}"
  108.         }
  109.     }
  110. }
  111. </script>
  112. {{/if}}
复制代码



您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回顶部