Intermediate 1 min read

Sections are not showing up in theme customize

Error: This page doesn't have any sections. Solutions: Make sure you have `{{ content_for_header }}`, `{{ content_for_layout }}`, and `{% section 'header' %}` in your theme.liquid file. Add an empty header.liquid file in th...

By Joe Pichardo

Error: Home page This page doesn’t have any sections. Edit theme settings

Home page - This page doesn't have any sections.

Solutions: Make sure you have {{ content_for_header }}, {{ content_for_layout }}, and {% section 'header' %} in your theme.liquid file. Add a header.liquid file in the sections folder, it can be an empty, it doesn’t matter.

<!DOCTYPE html>
<html>
<head>
<title>Joe Pichardo</title>
{{ content_for_header }}
</head>
<body>
{% section 'header' %}
{{ content_for_layout }}
</body>
</html>

In the index.liquid make sure you have {{ content_for_index }} in the file.

Discussion

Loading comments...