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

shopxo-seo

  [复制链接]
王铭 发表于 2026-7-13 12:32:39 | 显示全部楼层 |阅读模式
seo结构化数据
在</head>之前添加以下代码
  1. <!-- ===== JSON-LD 结构化数据(已修复 images 数组问题) ===== -->
  2. <!-- 1. LocalBusiness(全站) -->
  3. <script type="application/ld+json">
  4. {
  5.     "@context": "https://schema.org",
  6.     "@type": "LocalBusiness",
  7.     "name": "LED显示屏批发",
  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. }
  29. </script>

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


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

  59. <!-- 4. Product(商品详情页) -->
  60. {{if !empty($goods) && is_array($goods)}}
  61. <script type="application/ld+json">
  62. {
  63.     "@context": "https://schema.org",
  64.     "@type": "Product",
  65.     "name": "{{$goods.title}}",
  66.     "description": "{{if !empty($goods.simple_desc)}}{{$goods.simple_desc}}{{else /}}{{$home_seo_site_description}}{{/if}}",
  67.     {{if !empty($goods.model)}}
  68.     "sku": "{{$goods.model}}",
  69.     {{/if}}
  70.     "image": "{{:!empty($goods['images']) ? (is_array($goods['images']) ? $goods['images'][0] : $goods['images']) : $home_site_logo}}",
  71.     {{if !empty($goods.brand_name)}}
  72.     "brand": {
  73.         "@type": "Brand",
  74.         "name": "{{$goods.brand_name}}"
  75.     },
  76.     {{/if}}
  77.     "offers": {
  78.         "@type": "Offer",
  79.         "url": "{{$my_view_url}}",
  80.         "priceCurrency": "CNY",
  81.         {{if !empty($goods.price) && is_numeric($goods.price)}}
  82.         "price": "{{$goods.price}}",
  83.         {{/if}}
  84.         "availability": "{{if !empty($goods.inventory) && $goods.inventory > 0}}https://schema.org/InStock{{else /}}https://schema.org/OutOfStock{{/if}}"
  85.     }
  86. }
  87. </script>
  88. {{/if}}

  89. <!-- 5. Article(文章页) -->
  90. {{if !empty($article) && is_array($article) && !empty($article.title)}}
  91. <script type="application/ld+json">
  92. {
  93.     "@context": "https://schema.org",
  94.     "@type": "Article",
  95.     "headline": "{{$article.title}}",
  96.     "description": "{{if !empty($article.simple_desc)}}{{$article.simple_desc}}{{elseif !empty($article.seo_desc)}}{{$article.seo_desc}}{{else /}}{{$home_seo_site_description}}{{/if}}",
  97.     {{if !empty($article.add_time)}}
  98.     "datePublished": "{{:date('c', strtotime($article.add_time))}}",
  99.     {{/if}}
  100.     {{if !empty($article.upd_time)}}
  101.     "dateModified": "{{:date('c', strtotime($article.upd_time))}}",
  102.     {{elseif !empty($article.add_time) /}}
  103.     "dateModified": "{{:date('c', strtotime($article.add_time))}}",
  104.     {{/if}}
  105.     "image": "{{:!empty($article['images']) ? (is_array($article['images']) ? $article['images'][0] : $article['images']) : $home_site_logo}}",
  106.     "author": {
  107.         "@type": "Organization",
  108.         "name": "LED显示屏批发",
  109.         "url": "https://www.dzping.com/"
  110.     },
  111.     "publisher": {
  112.         "@type": "Organization",
  113.         "name": "LED显示屏批发",
  114.         "logo": {
  115.             "@type": "ImageObject",
  116.             "url": "{{$home_site_logo}}"
  117.         }
  118.     },
  119.     "mainEntityOfPage": {
  120.         "@type": "WebPage",
  121.         "@id": "{{$my_view_url}}"
  122.     }
  123. }
  124. </script>
  125. {{/if}}

  126. <!-- 6. BlogPosting(博客详情页) -->
  127. {{if !empty($data) && is_array($data) && !empty($data.title)}}
  128. <script type="application/ld+json">
  129. {
  130.     "@context": "https://schema.org",
  131.     "@type": "BlogPosting",
  132.     "headline": "{{$data.title}}",
  133.     "description": "{{if !empty($data.simple_desc)}}{{$data.simple_desc}}{{elseif !empty($data.seo_desc)}}{{$data.seo_desc}}{{else /}}{{$home_seo_site_description}}{{/if}}",
  134.     {{if !empty($data.add_time)}}
  135.     "datePublished": "{{:date('c', strtotime($data.add_time))}}",
  136.     {{/if}}
  137.     {{if !empty($data.upd_time)}}
  138.     "dateModified": "{{:date('c', strtotime($data.upd_time))}}",
  139.     {{elseif !empty($data.add_time) /}}
  140.     "dateModified": "{{:date('c', strtotime($data.add_time))}}",
  141.     {{/if}}
  142.     "image": "{{:!empty($data['images']) ? (is_array($data['images']) ? $data['images'][0] : $data['images']) : $home_site_logo}}",
  143.     "author": {
  144.         "@type": "Organization",
  145.         "name": "LED显示屏批发",
  146.         "url": "https://www.dzping.com/"
  147.     },
  148.     "publisher": {
  149.         "@type": "Organization",
  150.         "name": "LED显示屏批发",
  151.         "logo": {
  152.             "@type": "ImageObject",
  153.             "url": "{{$home_site_logo}}"
  154.         }
  155.     },
  156.     "mainEntityOfPage": {
  157.         "@type": "WebPage",
  158.         "@id": "{{$my_view_url}}"
  159.     }
  160. }
  161. </script>
  162. {{/if}}
复制代码




 楼主| 王铭 发表于 2026-7-13 16:34:45 | 显示全部楼层

<h1>您的购物车还是空的,您可以</h1>


首页<h1>代码调整
<h1>您的购物车还是空的,您可以</h1>
app/plugins/commonrightnavigation/view/index/public/cart.html
app/plugins/intellecttools/view/index/public/search_right_cart_content.html

Blog<h1>代码调整

<h1 class="am-title-left-border am-fl">推荐资讯</h1>
<h1 class="am-title-left-border">相关商品</h1>

/app/plugins/blog/view/index/index/detail.html






 楼主| 王铭 发表于 2026-7-13 17:26:46 | 显示全部楼层

sitemap生成修改

/app/plugins/baiduseo/service/SitemapService.php


  1.   // 根据数据类型设置changefreq和priority
  2.                 if($v['flag'] == 'article'){
  3.                         $seo_changefreq = 'monthly';
  4.                         $seo_priority = '0.6';
  5.                 }elseif($v['flag'] == 'blog'){
  6.                         $seo_changefreq = 'weekly';
  7.                         $seo_priority = '0.4';
  8.                 }else{
  9.                         $seo_changefreq = 'weekly';
  10.                         $seo_priority = '0.8';
  11.                 }
复制代码


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

本版积分规则

网站首页
案例展示
在线客服
一键拨号
返回顶部