microdata - 如何删除使用 JSON+LD 的商店软件标准标记?
问题描述
我使用 SW 5.10,如下所示,标准标记(微数据)如下:
<meta itemprop="brand" content="xxxx"/>
<meta itemprop="name" content="xxxx® xxx xxx1.4 Caps (300 xxx)"/>
<meta itemprop="weight" content="0.41 kg"/>
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="buybox--inner">
我在 SO 中进行了大量搜索,发现 json+ld 更适合 SEO 和 google,所以我决定使用插件来创建 json+ld,现在如下所示:
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Product",
"name": "xxxx 1.4 Cxxxaps (300 xxx)",
"image": xxxx.jpg",
"mpn": "93331FIT",
"brand": {
"@type": "Thing",
"name": "xxxxx"
现在的主要问题是所有产品都存在微数据和 json ld 结构,这有两个原因,这不是一个好的选择:
1)我在 SO 中搜索并发现一种产品,这对于同时呈现微数据和 json ld 是不好的。
2) json ld 更适合谷歌
因此,我需要将标准 shopware 5 标记(微数据)删除到谷歌搜索控制台,但不能在一页上检测到两个相同的产品,如下所示:
我如何删除这个购物软件的微数据到谷歌搜索控制台只检测 json ld?
解决方案
您需要覆盖每个包含“旧”语法的模板文件。这几乎是完整的详细信息页面,因为这些丰富的片段直接包含在它们的使用附近。
我认为通过更改此设置不会对您网站的 seo 性能有任何重大变化。它可能会破坏每个插件模板。
推荐阅读
- python - 我想抓取这个网站 https://hdyc.neis-one.org/ 它有两页登录验证
- ssl - 如何使用通用代码修复 Http 公钥固定问题
- selenium - Firefox:浏览器处于远程控制状态时不保留会话 cookie
- python - 使用 numpy 数组的每个元素的乘法/加法
- android - 自定义恢复Android的分区安装问题
- html - 桌面视图中的条件链接显示
- c++ - 赋值运算符更改分配对象的值
- c++ - 如何使 xpressive 引擎像常规文本搜索一样工作
- excel - 在 foreach 语句中创建检查点
- jquery - OWL carousel 在 iphone 和 ipad 的 iframe 中不起作用