Hi I am just starting to explore shopify app and have some questions here.
1. In order to add element into storefront, what is the best approach?
Using Script tag? or modifying the storefront through Asset API?
What are the CONS and POS of each approach? e.g. injecting script through tag might lead to slow loading...
2. How to posit the elements properly?
It is easy to add an element with fixed position but what if I want to place it related to some native elements, e.g. above the price or below the primary button?
Given the various themes shops use, is it possible to posit the elements properly without requiring merchants to manually edit the code.
3. How to ensure the added elements inherit the style of each shop's theme?
I have walked through the document and some tutorials but feel it hard to have a clear understanding to answer these questions......If there are any good tutorials could help me to find an answer, please do tell me!
Thanks : )
Solved! Go to the solution