adding block to theme

adding block to theme

gajenderdh947
Shopify Partner
12 0 1

Hi Devs ,

 

I am trying to add a block to product page redirecting store user to theme directly using following link

 

https://<myshopifyDomain>/admin/themes/current/editor?template={template}&addAppBlockId={uuid}/{hand...

 

Block is getting added but issue is that i want to my injected html to look just below pay button in same section

can anyone guide me how to achieve that using target parameter in provided url

Reply 1 (1)

Liam
Shopify Staff
2823 310 805

Hi Gajenderdh947,

 

It doesn't look like you can define where in the section an app block gets added, you can only target the section, but not blocks within that section (see our docs here). Are you seeing the app block being added to the main product section?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog