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
Post a Comment