we are using app embed blocks for our apps. They generally work great. However, we have found some cases where the content of the theme.liquid file is wrapped by a “capture” liquid tag, and in those cases the app embed blocks are not injected in the storefront. Could you please take a look?
Hi Fransierra! Wrapping the content of the theme.liquid file in capture tags is not a pattern I’ve spotted before - which theme are you using? I’ll also look into how best to work withapp embed blocks in this context
our apps don’t wrap the theme.liquid content, but we have found some clients with this situation, with themes such as Envy 26.4.0 or LangShop Theme 2.14.5. However, we don’t think this is a theme feature, rather it may be caused by some third app.
Anyway, we find the theme.liquid file with situations like:
I haven’t seen this capture and minified as a theme dev pattern, but as you mention it’s possible it’s caused by an app. For example if you search the Shopify App Store for “minification” you’ll find apps that affect theme Liquid files. Also since these are not themes on the theme store it’s difficult for me to test easily. However I’ll ask our product teams if they’ve encountered these use-case and how we can see how app embed blocks could operate in this context.
in case it helps, we are observing some merchants whose “” html tag is not closed in the theme.liquid file, or it is closed with a weird space like “”. In these cases, the app embed blocks are also not injected.