Web >> Development >> Shopify >> Themes >> How is the content_for_index generated

 

Your shopify store home page content generation starts here in the template file named index.liquid

  

The output for content_for_index is defined in Config/settings_data.json.  Look for "content_for_index".  It lists the sections liquid code that we have enabled for our home page

 

 

The last section we enabled in our example was another instance of "Collection list" and this was given the id 16088....  which corresponds to the following in settings_data.json

When you Customize your theme, these are the sections available and what was set to visible or hidden.  When set to visible, it will be listed in the "content_for_index" data structure in Config/settings_data.json

 

The liquid code for the sections available to be selected for content_for_index can be found in the Sections folder