跳到主要内容

Woocommerce Seo

我们的 WooCommerce SEO 插件 的 Schema 输出基于 Yoast SEO 的 Schema 输出,增加了关于产品和电子商务功能的额外细节。

核心功能

在所有页面上

  • 移除 WooCommerce 的面包屑 Schema。

在产品页面上

  • WebPage 片段的 @type 更改为 ItemPage
  • 修改 Product 片段。
    • 对每个现有的 WooCommerce 片段/值应用我们的验证逻辑。
    • Product 添加一个 mainEntityOfPage 属性,通过 ID 引用 WebPage
    • 根据分类设置,设置 brandmanufacturer 属性。
    • seller 设置为被设为 WebSitePublisherOrganization(或 Person)。
    • offersreview 和/或 aggregateRating 值编织到图中(当可用/适当时)。
    • ItemPage 中取消设置 datePublisheddateModified 值。

过滤器

  • 使用 wpseo_schema_product 过滤器自定义 Yoast 产品 Schema。更多信息请参见 产品 Schema 片段
  • 使用 wpseo_schema_offer 过滤器自定义产品 Schema 的报价部分。更多信息请参见 报价 Schema 片段

在结账页面上

  • WebPage 片段的 @type 更改为 CheckoutPage

在所有页面上可选。

  • hasMerchantReturnPolicy:一个 MerchantReturnPolicy 类型的数组,代表组织的退货政策。

更多信息