Fixing "logo": Liquid error (sections/header.liquid line 706): Width must be between 1 and 5760,

Fixing "logo": Liquid error (sections/header.liquid line 706): Width must be between 1 and 5760,

celestialremedy
Tourist
3 0 0

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/ 

 

Screen Shot 2022-10-02 at 6.05.30 AM 1.png

Replies 15 (15)

Uhrick
Shopify Partner
433 68 102

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

Shopify Developer
Hire me for theme customizations at ricardomsilvestre@outlook.com or Upwork
Was my answer helpful to you? Please like or mark as solution
celestialremedy
Tourist
3 0 0

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>

Uhrick
Shopify Partner
433 68 102

hey, try inserting {{ section.settings.logo_width }} somewhere in the html structure, just to see what appears when outputted

Shopify Developer
Hire me for theme customizations at ricardomsilvestre@outlook.com or Upwork
Was my answer helpful to you? Please like or mark as solution
celestialremedy
Tourist
3 0 0

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.

Uhrick
Shopify Partner
433 68 102

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?

Shopify Developer
Hire me for theme customizations at ricardomsilvestre@outlook.com or Upwork
Was my answer helpful to you? Please like or mark as solution
AnnaCS
New Member
6 0 0

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.

Uhrick
Shopify Partner
433 68 102

hey Anna. Why does Shopify keep you from saving? Does it show any notice? Any warning?

Shopify Developer
Hire me for theme customizations at ricardomsilvestre@outlook.com or Upwork
Was my answer helpful to you? Please like or mark as solution
AnnaCS
New Member
6 0 0

Hi Uhrick,

 

Thanks for your message. I get the following notification. Tried it in several ways but keep getting same notification.Schermafbeelding 2022-12-05 om 06.43.06.png

Uhrick
Shopify Partner
433 68 102

can you show the entire line? a lot of it is cut off

Shopify Developer
Hire me for theme customizations at ricardomsilvestre@outlook.com or Upwork
Was my answer helpful to you? Please like or mark as solution
AnnaCS
New Member
6 0 0

Schermafbeelding 2022-12-05 om 18.16.50.png

Yes of course!

 

Uhrick
Shopify Partner
433 68 102

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

Shopify Developer
Hire me for theme customizations at ricardomsilvestre@outlook.com or Upwork
Was my answer helpful to you? Please like or mark as solution
AnnaCS
New Member
6 0 0

Hi Uhrick, thank you for your response. I'm going to check in a bit and get back to you!

AnnaCS
New Member
6 0 0

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!

Uhrick
Shopify Partner
433 68 102

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

Shopify Developer
Hire me for theme customizations at ricardomsilvestre@outlook.com or Upwork
Was my answer helpful to you? Please like or mark as solution
matishuberman
Tourist
4 0 2

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!