Thread Rating:
  • 0 Vote(s) - 0 Average
Share Thread:
How to add Poducts schema code for shopify website ?
#10
To add Product Schema code to your Shopify website, follow these steps:

Log in to your Shopify account and go to the "Online Store" section.

Click on "Themes" and then select "Actions" and "Edit Code" on the theme that you want to add the schema code to.

Open the "product-template.liquid" file.

Scroll down to the bottom of the file and locate the </body> tag.

Just before the </body> tag, paste the following code:

json
Copy code
<script type="application/ld+json">
{
  "@context": "http://schema.org/",
  "@type": "Product",
  "name": "{{ product.title }}",
  "image": "{{ product.featured_image | img_url: '600x600' }}",
  "description": "{{ product.description | strip_html | escape }}",
  "sku": "{{ product.sku }}",
  "brand": {
    "@type": "Brand",
    "name": "{{ product.vendor }}"
  },
  "offers": {
    "@type": "Offer",
    "price": "{{ product.price }}",
    "priceCurrency": "{{ shop.currency }}"
  }
}
</script>
Save the changes and preview the product page to ensure that the schema code is displaying correctly.
Note: Make sure to replace the liquid variables in the code with the appropriate variable names used in your Shopify store. Also, note that this code only covers the basic product schema, and additional schema properties can be added as per your requirement.
eUKHost : Managed Web Hosting Provider
cPanel Web Hosting | Linux VPS Hosting | Secure Cloud Server Hosting
Reply


Messages In This Thread
RE: How to add Poducts schema code for shopify website ? - by Wilsonjacob45 - 04-10-2023, 06:29 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Ad

[-]
Top Articles
100+ Social Bookmarking Sites List
55+ Image Submission Sites List

[-]
Recent Posts
CloudFlare as a new Domain Registrar !!
Exciting news for website owners and domain enthusiasts – Cloudflare has now ventured int...ajmanproperties1 — 09:19 PM
ClickDealer - Join the Leaders of Affiliate Marketing!
When sticking close to e-commerce trends, it can be easy to forget that the vertical is m...ClickDealer — 03:55 PM
Google SERP Changes & Algorithm Updates - May 2024
UK traffic is also fluctuating but that's not the strange part. Strange part is the max...waylarge — 02:58 PM
Google SERP Changes & Algorithm Updates - May 2024
Yesterday I think large sites were hit. But they will remain unaffected in the long run...vk_lord — 02:56 PM
How many types of error are there in SEO?
How many types of error are there in SEO?Alex Jones — 02:12 PM

[-]
Follow us on Facebook