Hero Section disappears from Shopify Admin

Hello everyone,

I am currently building a Shopify Theme based on the Debut Theme to learn more about Shopify Theme Development. I created my own hero.liquid file with a Schema tag to allow the hero to be customized from the Shopify admin.

I managed to get the hero section to work but then shortly after, it disappeared from the Shopify admin.

I thought that the issue might be with my settings_data.json file so I deleted everything inside of it but I still can’t get the section from my hero.liquid file to show up

I can get every other liquid section to work properly except for this one, so I have a couple of questions.

  1. What do you think could be causing this issue?
  2. After creating Liquid sections, how are they rendered into the homepage? I am asking this because I can’t find any references inside any of the theme files that the working Shopify sections are referenced but they work just fine.

Hi @pierrewebdev ,

You changed sections/hero.liquid file and it disappears this section in “Add section” of Customize.

Refer https://i.imgur.com/MPApeEQ.png

Is this your question?

If so, just go to hero.liquid file and add “presets” in “schema”, it will work fine. https://i.imgur.com/21vfhiV.png

Code:

"presets": [
    {
      "name": "Image with text overlay",
      "category": "Image"
    }
  ]

Hope it helps!

Thank you so much for the reply. Now I will be able to deal with this issue if it happens again.