Adding HTML Security Badge to JSON Product Page/Checkout Page

AJWahlstedt
Visitor
1 0 0

Hi y’all,

 

I’m working on upgrading our Shopify 2.0 Dawn theme and I’m hoping to add the Security Badge to our default product page and checkout page. 

 

I haven’t worked with JSON as much; has anyone seen this HTML code altered to fit the JSON format?

<a
href="https://www.shopify.com/security/pci-compliant?utm_medium=shop&utm_source=secure"
title="This online store is secured by Shopify"
target="_blank"
rel="nofollow"
>
<img
src="https://cdn.shopify.com/s/images/badges/shopify-secure-badge-dark.svg"
alt="Shopify secure badge"
>
</a>

 

I was hoping to update the following pages:

  • Product.json
  • Cart.json

There are a few other things in the code that I want to change, but I have a feeling I’m going to have to sit down and learn more about JSON. I’d appreciate any advice you might have in the meantime. 

Replies 0 (0)