Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

adding block to theme

adding block to theme

gajenderdh947
Shopify Partner
13 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
Community Manager
3108 344 889

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