{"id":27511,"date":"2024-08-08T16:44:38","date_gmt":"2024-08-08T10:44:38","guid":{"rendered":"https:\/\/codexpert.io\/?p=27511"},"modified":"2024-10-01T15:12:20","modified_gmt":"2024-10-01T09:12:20","slug":"woocommerce-product-schema","status":"publish","type":"post","link":"https:\/\/codexpert.io\/blog\/woocommerce-product-schema\/","title":{"rendered":"How to Add WooCommerce Product Schema &#8211; A Step-by-Step Guide"},"content":{"rendered":"<div class='cx-content-before'><\/div>\n<p class=\"wp-block-paragraph\">Imagine your WooCommerce products dominating Google search results, complete with captivating images, prices, and ratings. This is the power of product schema. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this guide, we&#8217;ll explore how to implement WooCommerce product schema to enhance your product listings and drive more traffic to your online store.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:28px\" id=\"cx-heading-1\">How to Add WooCommerce Product Schema Markup?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are two easy ways to add WooCommerce product schema for your store. <\/p>\n\n\n\n<p class=\"has-ast-global-color-6-background-color has-background wp-block-paragraph\" style=\"padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--60);font-size:17px\">1. <strong>Using a WooCommerce Schema Plugin<\/strong><br>2. <strong>Applying Code<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-2\">Using a WooCommerce Schema Plugin<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Using the WooCommerce product schema markup plugin helps users with product prices, availability, ratings, detailed descriptions, and images. <a href=\"https:\/\/wordpress.org\/plugins\/all-in-one-schemaorg-rich-snippets\/\" target=\"_blank\" rel=\"noreferrer noopener\">Schema \u2013 All In One Schema Rich Snippets<\/a> is a free plugin that can help you achieve your goal in no time! <\/p>\n\n\n\n<h4 class=\"wp-block-heading\" style=\"font-size:20px\">Step 1: Install and Activate Plugin<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Navigate to <strong>Plugins &gt; Add New<\/strong> from your dashboard, search for <strong>Schema \u2013 All In One Schema Rich Snippets<\/strong>, and activate it on your site.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"698\" height=\"457\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/2024\/08\/Add-WooCommerce-product-schema-plugin.webp\" alt=\"Add-WooCommerce-Product-Schema-plugin\" class=\"wp-image-27516\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" style=\"font-size:20px\">Step 2: Enable Schema on WooCommerce Products<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">After activation, you have to go to the <strong>Rich Snippet Dashboard<\/strong> from your WordPress backend and enable <strong>WooCommerce Schema Configuration<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"591\" height=\"345\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/2024\/08\/Enable-schema-on-WooCommerce-products.webp\" alt=\"enable-WooCommerce-product-schema\" class=\"wp-image-27517\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" style=\"font-size:20px\">Step 3: Customize WooCommerce Product Schema<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">When you\u2019re done, head over to the product page, hover on the product\u2019s <strong>Edit<\/strong> button you want to customize, and. If you don&#8217;t have any pre-existing products, then start by creating one.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1316\" height=\"614\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/2024\/08\/Edit-Products-for-schema.webp\" alt=\"Edit-Products-for-schema\" class=\"wp-image-27518\" srcset=\"https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/08\/Edit-Products-for-schema.webp 1316w, https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/08\/Edit-Products-for-schema-768x358.webp 768w\" sizes=\"auto, (max-width: 1316px) 100vw, 1316px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Next, select <strong>Product<\/strong> as the type of content you&#8217;re working with. This will open up specific fields designed for product schema, allowing you to provide detailed information about your WooCommerce items.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1289\" height=\"684\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/2024\/08\/Select-schema-product.webp\" alt=\"WooCommerce-product-schema-options\" class=\"wp-image-27519\" srcset=\"https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/08\/Select-schema-product.webp 1289w, https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/08\/Select-schema-product-768x408.webp 768w\" sizes=\"auto, (max-width: 1289px) 100vw, 1289px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Configure all the data shown in the <strong>Configure Rich Snippe<\/strong>t section. And click the <strong>Publish<\/strong> button to upload your product.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1301\" height=\"983\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/2024\/08\/Fill-up-schema-fields.webp\" alt=\"rich-snippet-products\" class=\"wp-image-27598\" srcset=\"https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/08\/Fill-up-schema-fields.webp 1301w, https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/08\/Fill-up-schema-fields-768x580.webp 768w\" sizes=\"auto, (max-width: 1301px) 100vw, 1301px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:28px\" id=\"cx-heading-3\">Applying JSON-LD Method for WooCommerce Product Schema<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are <strong>3 formats<\/strong> that you can use to structure your site data.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size:17px\">JSON-LD<\/li>\n\n\n\n<li style=\"font-size:17px\">Microdata<\/li>\n\n\n\n<li style=\"font-size:17px\">RDFa<\/li>\n<\/ul>\n\n\n\n<div style=\"height:15px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s the JSON-LD Google&#8217;s recommendation method to prepare WooCommerce product schema markups for your site\u2019s pages.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-4\">Step 1: Add Required Properties<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You must add two required properties to your product schema. They are the<strong> Name of the Product <\/strong>and the <strong>URLs of Your Product\u2019s Photo<\/strong>. Other recommendations for products include &#8211; <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size:17px\">Aggregate Rating<\/li>\n\n\n\n<li style=\"font-size:17px\">Brand of the product<\/li>\n\n\n\n<li style=\"font-size:17px\">Description<\/li>\n\n\n\n<li style=\"font-size:17px\">Offer<\/li>\n\n\n\n<li style=\"font-size:17px\">Review<\/li>\n\n\n\n<li style=\"font-size:17px\">SKU<\/li>\n<\/ul>\n\n\n\n<div style=\"height:15px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-5\">Step 2: Complete Product Schema Code<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Here is an example of the <a href=\"https:\/\/developers.google.com\/search\/docs\/appearance\/structured-data\/product-snippet\" target=\"_blank\" rel=\"noreferrer noopener\">JSON-LD code<\/a> for a single product page. You need to copy this code into your HTML and customize it accordingly. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;html&gt;\n  &lt;head&gt;\n\t&lt;title&gt;Executive Anvil&lt;\/title&gt;\n\t&lt;script type=\"application\/ld+json\"&gt;\n\t{\n  \t\"@context\": \"https:\/\/schema.org\/\",\n  \t\"@type\": \"Product\",\n  \t\"name\": \"Kyle Johnson\",\n  \t\"description\": \"A perfect addition for Men's perfume. Last longer than ever.\",\n  \t\"review\": {\n    \t\"@type\": \"Review\",\n    \t\"reviewRating\": {\n      \t\"@type\": \"Rating\",\n      \t\"ratingValue\": 4,\n      \t\"bestRating\": 5\n    \t},\n    \t\"author\": {\n      \t\"@type\": \"Person\",\n      \t\"name\": \"Jackson Miller\"\n    \t}\n  \t},\n  \t\"aggregateRating\": {\n    \t\"@type\": \"AggregateRating\",\n    \t\"ratingValue\": 4.4,\n    \t\"reviewCount\": 89\n  \t}\n\t}\n\t&lt;\/script&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-6\">Step 3: Follow Google&#8217;s Guidelines<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You have to ensure that the method you are going to use for your website is following guidelines provided by <a href=\"https:\/\/developers.google.com\/search\/docs\/appearance\/structured-data\/product?_ga=2.873265.1454415181.1592698567-804684676.1583197167#guidelines\" target=\"_blank\" rel=\"noreferrer noopener\">Google<\/a>. This step will help you comply with Google&#8217;s requirements and avoid errors.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-7\">Step 4: Ensure Your Code is Valid<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Make sure the code you&#8217;re using is valid, before you embed it in your site. Otherwise, it may significantly damage your site&#8217;s SEO.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can debug your code on <a href=\"https:\/\/search.google.com\/test\/rich-results\" target=\"_blank\" rel=\"noopener\">Rich Results Test<\/a> to check if the code you\u2019re going to use contains any errors.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-8\">Step 5: Verify Your Pages<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Before applying the code to all of your site\u2019s pages, trying applying an A\/B test. Deploy the pages and analyze how Google sees all of them.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you think that they are giving you fair results, continue with the full deployment.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-left\" style=\"font-size:28px\" id=\"cx-heading-9\">Solutions to WooCommerce Product Schema Issues<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After adding the WooCommerce product schema, you may face some difficulties. Here are some common product schema issues and their solutions &#8211; <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-10\">1. Schema Markup Not Showing<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After implementing schema markup on your WooCommerce site, it may not show up in search results. Here are some troubleshoots to overcome this issue &#8211;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size:17px\"><strong>Wait for Google:<\/strong> It might take some time for search engines to crawl and recognize the new schema markup. You need to give it a few days for this to process.<\/li>\n\n\n\n<li style=\"font-size:17px\"><strong>Check Theme Compatibility:<\/strong> Make sure your theme supports the schema markup, as some themes might not be fully compatible with WooCoommerce\u2019s schema setup. <\/li>\n\n\n\n<li style=\"font-size:17px\"><strong>Avoid Using Multiple Plugins:<\/strong> Sometimes, schema markup issues arise due to conflicts caused by using multiple plugins. To resolve this, disable other plugins one by one to identify if any are interfering with the schema markup.<\/li>\n\n\n\n<li style=\"font-size:17px\"><strong>Clear Caches:<\/strong> If you use caching plugins, clear your site\u2019s cache after making changes to the schema markup. This will provide updated data to both visitors and search engines.<\/li>\n<\/ul>\n\n\n\n<div style=\"height:15px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Before implementing the above strategy, check whether the WooCommerce schema markup is set correctly on your product pages.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-11\">2. Schema Markup Not Validating<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If the schema markup fails to validate, it can lead to potential issues in search engine recognition. Here are some methods you can apply to fix this &#8211; <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size:17px\"><strong>Use Schema Testing Tools:<\/strong> Use validation tools like <a href=\"https:\/\/developers.google.com\/search\/docs\/appearance\/structured-data\" target=\"_blank\" rel=\"noreferrer noopener\">Google\u2019s Structured Data Testing Tool<\/a> or <a href=\"https:\/\/schema.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Schema.org<\/a> to help you check errors in your schema markup.<\/li>\n\n\n\n<li style=\"font-size:17px\"><strong>Correct Syntax Errors:<\/strong> Ensure that the markup syntax follows the correct format. Even small errors like missing commas or quotation marks can cause validation issues.<\/li>\n\n\n\n<li style=\"font-size:17px\"><strong>Review Schema Documentation:<\/strong> Review the schema markup manually with the help of documentation to make sure all the information is correct. For example, price, availability, and ratings are accurate and up-to-date.<\/li>\n\n\n\n<li style=\"font-size:17px\"><strong>Use Specific Schema Types:<\/strong> Utilize the correct schema types for your products. For example, use the Product type for individual products and Offer price-related information.<\/li>\n\n\n\n<li style=\"font-size:17px\"><strong>Seek Expert Help:<\/strong> If you find the schema issues are complex, consider consulting with a professional who specializes in SEO and schema markup to ensure everything is  configured correctly.<\/li>\n<\/ul>\n\n\n\n<div style=\"height:15px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:28px\" id=\"cx-heading-12\">Final Words on Using WooCommerce Product Schema<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Adding WooCommerce product schema to your WordPress site is a powerful way to enhance your product listings and improve your visibility in search engine results. You can follow the WordPress plugin guide to simplify this task. If you\u2019re a developer, refer to the second method outlined earlier in this blog.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With the right approach, you can create a more engaging and informative experience for your customers. Start applying these techniques and make your WooCommerce store flourish!<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-left\" style=\"font-size:28px\" id=\"cx-heading-13\">Frequently Asked Questions (FAQs)<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:22px\" id=\"cx-heading-14\">Q1. How to Add WooCommerce Product Schema Markup?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Add WooCommerce product schema markup by following the below steps &#8211;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size:17px\">Install and activate Schema \u2013 All In One Schema Rich Snippets on your site.<\/li>\n\n\n\n<li style=\"font-size:17px\">Enable WooCommerce settings for WooCommerce product schema.<\/li>\n\n\n\n<li style=\"font-size:17px\">Edit your WooCommerce product.<\/li>\n\n\n\n<li style=\"font-size:17px\">Head over to the Schema section on the product&#8217;s page.<\/li>\n\n\n\n<li style=\"font-size:17px\">Fill out the schema fields with proper details.<\/li>\n\n\n\n<li style=\"font-size:17px\">After customization, save the changes.<\/li>\n<\/ul>\n\n\n\n<div style=\"height:15px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:22px\" id=\"cx-heading-15\">Q2. How do I add product details in WooCommerce?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can easily add product details in WooCommerce by navigating to <strong>WooCommerce &gt; All Products<\/strong>. From the <strong>All Products page<\/strong>, edit the product and fill out the product\u2019s data.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:22px\" id=\"cx-heading-16\">Q3. How do I disable the WooCommerce Product Schema?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Disable WooCommerce Product schema by following the steps below &#8211;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size:17px\">Navigate to <strong>Appearance &gt; Themes Editor<\/strong>.<\/li>\n\n\n\n<li style=\"font-size:17px\">Open your theme\u2019s functions.php file.<\/li>\n\n\n\n<li style=\"font-size:17px\">Paste this code <strong>add_filter( &#8216;woocommerce_structured_data_product&#8217;, &#8216;__return_false&#8217; );<\/strong> in the editor.<\/li>\n\n\n\n<li style=\"font-size:17px\">Finally, save the changes.<\/li>\n<\/ul>\n<div class='cx-content-after'><\/div>","protected":false},"excerpt":{"rendered":"<p>Imagine your WooCommerce products dominating Google search results, complete with captivating images, prices, and ratings. This is the power of product schema. In this guide, we&#8217;ll explore how to implement WooCommerce product schema to enhance your product listings and drive more traffic to your online store. How to Add WooCommerce Product Schema Markup? There are [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":27521,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[14],"tags":[352],"class_list":["post-27511","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-woocommerce","tag-general"],"_links":{"self":[{"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/posts\/27511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/comments?post=27511"}],"version-history":[{"count":1,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/posts\/27511\/revisions"}],"predecessor-version":[{"id":27600,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/posts\/27511\/revisions\/27600"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/media\/27521"}],"wp:attachment":[{"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/media?parent=27511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/categories?post=27511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/tags?post=27511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}