Finding the JSON.LD in the enterprise theme

Hi

I’m currently using the enterprise theme by Clean Canvas and I’m having some trouble with Duplicate field “brand”. I need to find the JSON.LD but i’m having trouble finding it in the code. Could someone please tell me where it is located for the enterprise theme. Thank you

Hey @3D-Cast,

Thanks for sharing the details. The duplicate “brand” issue in the JSON-LD usually happens when both the Shopify system and the theme itself output a brand field.

In the Enterprise theme by Clean Canvas, the JSON-LD code is typically located in one of the following files:

  • snippets/json-ld.liquid,

  • snippets/product-schema.liquid, or

  • Inside the product.liquid or main-product.liquid template.

If you could add me as a collabrator in your store by sharing the code then I can take a look and fix it.

Thanks

Thanks, the only thing i can find is the main-product.liquid under section. However when I’m in it and search for JSON-LD nothing comes up. Thanks for your offer to help, but I’m using this problem as a learning experience for me

Search for ld+json to find the structured data in your theme. I would assume you have an app that is linking data with your theme markup causing the error. If that’s the case, tell your app not to use the same @id as your theme.

@3D-Cast Do NOT under any circumstances distribute a premium theme publicly it violates your terms and more.

Thanks that’s exactly what was happening. I got the app dev to jump into the code and fix it for me.

Hi Paul, all good. I wasn’t going to share theme code in the first place. Thanks