How to insert custom HTML in theme via custom Shopify App? -


i want include custom html in shopify theme whenever user install / enable app in store. can suggest me how ?

using asset api can add or update assets, example custom html. asset belongs theme, need theme api, gives access installed theme(s) , it's role(s). shouldn't update existing assets don't belong own app.

if want add javascript store, might want use scripttag.

a third option use application proxies. application proxies forward web requests application. application returns custom html (or liquid), returned visitor. way extend store example image gallery.

keep in mind assets won't removed when store uninstalls app. after uninstall don't have access assets anymore. scripttag removed when store uninstalls app. application proxy can implement access mechanism , deny access when store uninstalls app.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -