Shopify Index does not recognize sections

Solved
SobefyOscar
Shopify Partner
113 11 30

Hey guys, 

 

I'm using themekit and I'm developing a custom theme. I've always followed the same approach but for some reason on the homepage via customizer I keep getting the "No sections currently available for this page" 

I made sure to add {{ content_for_layout }} on my theme.liquid file before the </body> tag, and {{ content_for_index }} on my index.liquid file but I can't seem to get it to work. I'm using theme watch on my terminal and everytime it pushes a change I don't get any error messages.

I'm attaching screenshots of my theme files, right now they are very simple in terms of code as I have not started adding any major customizations. 

Here is my theme.liquid file

<!doctype html>
<html>
<head>
  <title>{{ page_title }}</title>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="description" content="{{ page_description | escape }}">
  <link rel="canonical" href="{{ canonical_url }}">
  <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  {{ content_for_header }} <!-- Header hook for plugins -->
  {{ 'application.css' | asset_url | stylesheet_tag }}
  {{ 'application.js' | asset_url | script_tag }}
</head>
<body>

  {% for link in linklists.main-menu.links %}
    {% assign child_list_handle = link.title | handleize %}
    {% if linklists[child_list_handle].links != blank %}
      <a href="{{ link.url }}">{{ link.title }}</a>
      [{% for childlink in linklists[child_list_handle].links %}
        <a href="{{ childlink.url }}">{{ childlink.title | escape }}</a>
      {% endfor %}]
    {% else %}
      <a href="{{ link.url }}">{{ link.title }}</a>
    {% endif %}
  {% endfor %}

  <a href="/cart">cart</a>

  {% if shop.customer_accounts_enabled %}
    {% if customer %}
      <a href="/account">account</a>
      {{ 'log out'  | customer_logout_link }}
    {% else %}
      {{ 'log in ' | customer_login_link }}
      {{ 'register' | customer_register_link }}
    {% endif %}
  {% endif %}

  <main role="main">
    {{ content_for_layout }}
  </main>
  
</body>
</html>

 

And here is my index file

Screen Shot 2021-02-17 at 1.29.45 PM.png

and my homepage screenshot via customizer

Screen Shot 2021-02-17 at 1.26.16 PM.png

 

Can someone let me know if I am missing anything?

Want to customize or make changes to a theme? Hire me.
If my answer was helpful please Like and Accept Solution.
Email: oscar@sobefy.com
Website: Sobefy.com
0 Likes
SobefyOscar
Shopify Partner
113 11 30

This is an accepted solution.

Arg! Hate to solve my own bugs. I forgot to add presets lol. Always 

"presets": [{
    "name": "Hero Section",
    "category": "Hero Sections"
  }]

 

Want to customize or make changes to a theme? Hire me.
If my answer was helpful please Like and Accept Solution.
Email: oscar@sobefy.com
Website: Sobefy.com
0 Likes