Craft Theme Header.Liquid file Not Editing

Hello,

I want to make the logo size for our Craft Theme larger than 250 width. So, following another community post instructions, I backed up my theme and went into the Header.Liquid file.

I was not able to change the “max”: value to any value. When I edit to any number, for example, 400, and clicked off it to click Save, it reverted back to 250. Does anyone know why this happened?

I did some further research in these Communities, and discovered that others were not able to edit the Header.Liquid file in Craft theme as well. I followed the recommendations to clear cache, etc. That didn’t work for me.

I use a MacBook / Safari as my browser, so I decided to try it on Chrome following the cache clearing b4 any attempt to edit, and go the same results … cannot edit. Others said that it was because the logo image was not an .SVG, and there were some suggested code changes, but not clear enough for me to want to follow.

Please help. I really appreciate any input. Thanks!

1 Like

Hi,

Sorry to hear that there is a glitch with editing the header.liquid in Craft theme.

I tried to change the logo_width max setting to 500 but it was keep changing back to 250.

I could change the amount with the following steps.

  1. Rename the header.liquid to header-backup.liquid.

  2. Copy all (ctl+a > ctl+c) the header-backup.liquid (the same as the original header.liquid).

  3. Paste the code in to text editor (notepad or similar).

  4. change the logo max width setting to 500 in text editor.

  5. copy all from the text editor.

  6. Add a new section

  7. type “header” and click “done” (new header.liquid will be created)

  8. Select all and paste the content (from text editor) to replace the new header.liquid.

  9. Save

Finally the header.liquid was changed.

Hope it helps.

Thanks.