Can Shopify app automatically inject liquid code inside shop's theme?

inject, liquid, shopify

Solution

A file with a .liquid extension is considered to be an asset. Since you can add assets to a shop, the answer is yes, you can indeed inject Liquid template code into a shop's theme.

If you use an App Proxy you can also send Shopify Liquid strings and Shopify will render that right in the Shop for you. Pretty neat stuff.

Problem

I'm building a Shopify application and I'm interested in automatically adding a liquid content into the shop's theme.

Original source