Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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
Hey any help with the problem? here is also the code of the theme.liquid file
Had a similar issue just now for a client
Looks like maybe Shopify using the Shopify object so need to guard against it. If in your theme you are declaring a Shopify object then need to add some guard clauses.
We had a file that created our own object and had to add the first few lines
<script>
if (window.Shopify?.designMode) return
if ((typeof window.Shopify) == 'undefined') { window.Shopify = {}; }
Shopify = {
colors: {
...
</script>
From here we could edit in the theme editor as normal