Re: Hero Section disappears from Shopify Admin

Solved

Hero Section disappears from Shopify Admin

pierrewebdev
Shopify Partner
35 1 6

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)

LitCommerce
Astronaut
2860 684 748

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
Astronaut
2860 684 748

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!
pierrewebdev
Shopify Partner
35 1 6

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