Tags:
- Themes
Detect the theme editor using Liquid and JavaScript
You can now detect the theme editor programmatically using Liquid and JavaScript. In Liquid, you can use . In JavaScript, you can use
.
Workaround methods, such as in Liquid, or searching the page URL in JavaScript, aren't supported and won't continue to work in the new theme editor. To make your app or theme compatible with the new theme editor, you need to update your code to use a supported method.
Learn more about detecting the theme editor on Shopify.dev.
Was this section helpful?