How to duplicate the template code for Homepage? Says Content_For_Index

Highlighted
New Member
1 0 0

Grabbed the free theme "Debut". I wanted to take the functionality from homepage and duplicate it into a page template, however, unlike most of the other templates that generally pull from the "Sections" folder, "Index.liquid", which I've been told is the home page template, has {{ Content_For_Index }} in the code descriptor. Any idea how to work with this? Is this just shopify trying to block off that functionality for free users? 

0 Likes
Highlighted
Shopify Partner
12 0 2

This is because the homepage is a bit special, in that its content is automatically built from the sections that include a 'presets' property in their {% schema %} (dynamic sections). You can create a duplicate of your homepage template by hunting down those sections, either by checking their schemas in their respective .liquid files and/or referencing the sections you see in the Customize editor tool for the homepage. Then just create another template that includes those same sections:

{% section 'my-really-great-section' %}
{% section 'another-great-section' %}

... etc

 

Hope this helps!

0 Likes
Highlighted
New Member
1 0 0

Hi, 

Did you get sorted out this issue yet?

I am using the "DEBUT" template as well and can't find the homepage template file to duplicate for other pages.

Please help! 

0 Likes