Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi! I launched my Shopify site yesterday and Google Search Console got back to me this morning with the error: logo": Liquid error (sections/header.liquid line 706): Width must be between 1 and 5760,
Site theme: Dawn
https://celestialremedyco.com/
hey, Celestialremedy
You need to go to the theme code, in online store > themes > actions > edit code
search for the header.liquid file, line 706, and change the width set there to a number in the accepted range, you can test different values
Hi thank you for responding, shopify won't let me add anything to the width so I know I'm not adding it to the right spot. Is there any specific line of code I need to add for the size? I have basic knowledge of html/css so I'm not sure how that would look.
Lines 700-721:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"name": {{ shop.name | json }},
{% if section.settings.logo %}
(line 706) "logo": {{ section.settings.logo | image_url: width: section.settings.logo_width | prepend: "https:" | json }},
{% endif %}
"sameAs": [
{{ settings.social_twitter_link | json }},
{{ settings.social_facebook_link | json }},
{{ settings.social_pinterest_link | json }},
{{ settings.social_instagram_link | json }},
{{ settings.social_tiktok_link | json }},
{{ settings.social_tumblr_link | json }},
{{ settings.social_snapchat_link | json }},
{{ settings.social_youtube_link | json }},
{{ settings.social_vimeo_link | json }}
],
"url": {{ request.origin | append: page.url | json }}
}
</script>
hey, try inserting {{ section.settings.logo_width }} somewhere in the html structure, just to see what appears when outputted
Hi, I submitted a validation request, google says they'll give me a response in a few days so hopefully this works. I appreciate your help! I plan on buying the Impulse theme sometime next week so hopefully code won't be a big issue.
But from the console it seems that the problem is in the liquid language, you won't try to fix it for now? Is that it?
Hi Uhrick,
I'm having the exact same problem. I tried your resolution by adding {{ section.settings.logo_width }} in the header.liquid in line 732 but shopify won't let me save it.
Could you please help? Thanks in advance i appreciate it.
hey Anna. Why does Shopify keep you from saving? Does it show any notice? Any warning?
Hi Uhrick,
Thanks for your message. I get the following notification. Tried it in several ways but keep getting same notification.
can you show the entire line? a lot of it is cut off
Yes of course!
I don't know if this would be the problem, but there should be a comma at the end of line 732. Other than that, have you checked if your quotations marks are regular? Sometimes I noticed that for some reason bent quotation marks appear
Hi Uhrick, thank you for your response. I'm going to check in a bit and get back to you!
Hi Uhrick,
I've added the comma and replaced the " for ' in these specific rows. It's up for valuation and might take a few days. Would you suggest replacing all " for ' on the page/ all pages?
Thanks again!
hey, Anna. What I meant is that sometimes, for some reason, the quotation marks are different, like “ instead of ". I was just saying to make sure that this wasn't the case
Hi AnnaCS. I am currently facing the same problem. I tried the solution of Uhrick but it didn't work for me.
Now I get the same message saying that it is up for validation and might take a few days. Should I expect the problem to be solved after that ? Could you share what happened to your website then ?
Thank you very much!
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025