Replacement for deprecated theme object in Liquid

Replacement for deprecated theme object in Liquid

diegovogel
Shopify Partner
16 0 4

We often use the `theme` object in Liquid to determine when a theme is running locally or get other info about the theme. Now that it's deprecated, what's the best way to do this?

Reply 1 (1)
diegovogel
Shopify Partner
16 0 4

Hi @Sonya_Yuan, thanks for that. But I'm looking for a way to get theme information from within a theme, in a Liquid template. I believe the Admin API can only be used in apps.