Re: App embed block - theme extension

How can I display a banner message at the top of a cart page using theme extension?

Shopify Partner
6 0 2



I am working on a node shopify app.

I am trying show a banner message in cart page's body using theme extension. I am using app embed block. and the shema will look like below,

{% schema %}
"name": "Cart Limiter",
"target": "section",
"javascript": "execute.js",
"settings": [

{% endschema %}


But, my liquid code is displaying in the end of the cart page elements.

How can i make my code display on top of the cart page liquid elements.


I dont want to use section. because it should manually place by the merchant in theme editor.

Please help me to work around this.





Reply 1 (1)

Shopify Partner
11 0 2

Hi, as you have mentioned you are using the embed block, you must change target to "body" and then position your element using css