Homepage has no sections, index.liquid created

Homepage has no sections, index.liquid created

kindredstudios
New Member
5 0 0

I installed a downloaded template, and when I went to customize the homepage is directed to a 404 page. I then went to "Edit Code" and discovered there was no index.liquid so I created it. That then allowed me to view the homepage when in customize mode, but there are no options to add sections to my homepage template. Do I need to add some code in my index.liquid to allow for sections to appear when customizing my homepage?Screen Shot 2023-08-16 at 12.26.04 PM.png

Replies 4 (4)

Made4uo-Ribe
Shopify Partner
7609 1833 2245

Hi @kindredstudios 

 

It sounds like you have a messed up your theme.liquid file. Please follow the instructions below. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Layout" folder, click on "theme.liquid" file
  • Make sure you have the follow code below inside that file. The following code is responsible for showing the index.liquid file. 
  • You might also have HTML error that is why it is not showing properly. You can always go back to default by clicking the "Recent Changes"
 {{ content_for_layout }}

 Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
kindredstudios
New Member
5 0 0

Unfortunately that didn't make any changes

kindredstudios
New Member
5 0 0

I exported this theme from another account and uploaded it to this new account, does that make any difference? The imported theme did not have a index.liquid which I created and then was able to see the homepage and not going to a 404 but still no ability to add sections

medlingtonQPS
Shopify Partner
28 0 8

Did you fix this?

 

Im pretty sure you need to change from index.liquid to index.json and include atleast one block in there but Im not sure exactly what code to put in it. Im looking for that code now and found your post