Hero Section disappears from Shopify Admin

Solved
pierrewebdev
Tourist
4 0 3

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.

 

Accepted Solution (1)

Accepted Solutions
LitCommerce
Trailblazer
268 69 71

This is an accepted solution.

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!

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!

View solution in original post

Replies 2 (2)
LitCommerce
Trailblazer
268 69 71

This is an accepted solution.

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!

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!

View solution in original post

pierrewebdev
Tourist
4 0 3

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