Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Replacement for deprecated theme object in Liquid

Replacement for deprecated theme object in Liquid

diegovogel
Shopify Partner
21 0 6

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
21 0 6

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.