Re: Custom Liquid Not Working - Yotpo

Why isn't my custom liquid working in Shopify Editor?

honeybug
Excursionist
33 0 8

Hi there!


We are trying to create a rewards page in Shopify Editor and would like to add the following custom liquid (provided by the loyalty vendor). It's supposed to be an easy "drop in" but when we add to the custom liquid block nothing appears?

 

<div class="yotpo-widget-instance" data-yotpo-instance-id="113100"></div>

 

We'd appreciate help 🙂 

 

honeybug_0-1656686473407.png

 

Replies 7 (7)

WoodyDev
Shopify Partner
578 115 193

Hi!

 

You need to add it to your theme.liquid file not through the customise menu 🙂

Woody, 29, Stafford, UK | If I helped you out, mark it as the solution and drop me a thumbs up! | This is just a hobby for me, not my full-time job, so tips are greatly appreciated! paypal.me/woodybruh | Developer for AimShop.com | Owner of WoodyDevelopments | Try the best Shopify page builder
honeybug
Excursionist
33 0 8

Ah, ok, I figured it wouldn't be that easy ha! Thank you 🙂

WoodyDev
Shopify Partner
578 115 193

No problem!

 

If it's still not working i'll be happy to request collaborator access and place it for you 🙂

Woody, 29, Stafford, UK | If I helped you out, mark it as the solution and drop me a thumbs up! | This is just a hobby for me, not my full-time job, so tips are greatly appreciated! paypal.me/woodybruh | Developer for AimShop.com | Owner of WoodyDevelopments | Try the best Shopify page builder
honeybug
Excursionist
33 0 8

Thanks @WoodyDev!! What I'm struggling with is that the page we want to add it to is json not liquid - so we can't even drop in  the snippet 😞

WoodyDev
Shopify Partner
578 115 193

It should still work as its just supplying a div for the JS to target?

Woody, 29, Stafford, UK | If I helped you out, mark it as the solution and drop me a thumbs up! | This is just a hobby for me, not my full-time job, so tips are greatly appreciated! paypal.me/woodybruh | Developer for AimShop.com | Owner of WoodyDevelopments | Try the best Shopify page builder
honeybug
Excursionist
33 0 8

That's what I thought too? But getting this error - Sorry for the hassle! I'm a marketer, not an engineer - but I know "enough" to get by HA! 

 

Screen Shot 2022-07-01 at 7.58.26 AM.png

 

WoodyDev
Shopify Partner
578 115 193

How strange, could you provide the STORE.myshopify.com URL so I can request access and the code you are trying to place.

 

Also the page you are wanting it to appear on 🙂

Woody, 29, Stafford, UK | If I helped you out, mark it as the solution and drop me a thumbs up! | This is just a hobby for me, not my full-time job, so tips are greatly appreciated! paypal.me/woodybruh | Developer for AimShop.com | Owner of WoodyDevelopments | Try the best Shopify page builder