Shopify themes, liquid, logos, and UX
I just launched a new theme and some users are seeing this error at the top of the site on mobile. I persoanlly am not. What could be causing this? Spinnywhoosh.com
Solved! Go to the solution
This is an accepted solution.
ALRIGHT, was easy enough to find and fix. Went into theme.liquid fine and checked out line 43. Was a {{ content_for_header }} tag. So I commented it out with:
{% capture h_content %}
{{ content_for_header }}
{% endcapture %}
That did the trick! Hope this helps anyone with this case.
This is a common error that is happening on many shopify sites. There is probably some bug and shopify is working on it. Hopefully it will be fixed soon.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month nowThis is an accepted solution.
ALRIGHT, was easy enough to find and fix. Went into theme.liquid fine and checked out line 43. Was a {{ content_for_header }} tag. So I commented it out with:
{% capture h_content %}
{{ content_for_header }}
{% endcapture %}
That did the trick! Hope this helps anyone with this case.
@Scott_Simsa don't do this, content for header contains all the scripts that get injected by any apps, this can cause functionality to break and if not now it will in the future. Jsyk, you're not commenting it out. You're capturing it as a variable. It essentially is commenting it out because you never output {{ h_content }} anywhere in the code. Anyway, just remove that. The issue you were seeing was a Shopify issue that they have since resolved, I was seeing it on a bunch of stores this morning.
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024