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: 2 Guest(s)
[-]
Ad

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

[-]
Recent Posts
https://www.facebook.com/TryMakersCBDGummies/
Makers CBD Gummies This way that if you're feeling worrying, your ECS will launch en...CBDMakerUSA — 12:17 PM
Exploring the Different Varieties of Hempsmart CBD Gummies Available i...
Hempsmart CBD Gummies Australia:- Due to this uncertainty regarding components, quality,...Brianakoods — 11:55 AM
Prodentim: The Only Prodentim Guide You'Ll Ever Need
Get Prodentim From The Official Website Only Prodentim - This paradox explains why e...honeyshar — 11:49 AM
https://www.facebook.com/TryTheGeniusWave/
The Genius Wave - The Genius Wave is a powerful complement that helps mind fitness and co...jennyferany — 11:33 AM
Does Social Bookmarking really helps??
Social bookmarking is an effective way to promote content and increase traffic to a websi...charlesprabhu — 11:13 AM

[-]
Follow us on Facebook