Dawn 2.0 Theme Problem | Home Page Index file is not present

xGhost
Tourist
13 0 3

I want to modify lot of things for home page but i see the index.liquid file is not present in theme.

I have a lot of modifications to be done and the prebuild theme customizer wont be able to do it.

So where is the index file as there was in Debut theme ?

I also made a new index.alternate.liquid & index.alternate.json files but they wont appear in theme customizer for home page !!!

So how can i include liquid for homepage ?

Following is the code for index.json but how can i include liquid in it since json cant have liquid

 

{
"sections": {
"image_banner": {
"type": "image-banner",
"blocks": {
"heading": {
"type": "heading",
"settings": {
"heading": "Talk about your brand"
}
},
"button": {
"type": "buttons",
"settings": {
"button_label_1": "Shop all",
"button_link_1": "shopify:\/\/collections\/all",
"button_label_2": ""
}
}
},
"block_order": [
"heading",
"button"
],
"settings": {
"desktop_text_box_position": "flex-end"
}
},
"rich_text": {
"type": "rich-text",
"blocks": {
"heading": {
"type": "heading",
"settings": {
}
},
"text": {
"type": "text",
"settings": {
}
},
"button": {
"type": "button",
"settings": {
}
}
},
"block_order": [
"heading",
"text",
"button"
],
"settings": {
}
},
"featured_products": {
"type": "featured-collection",
"settings": {
"title": "Featured products",
"collection": "all",
"image_ratio": "square"
}
},
"collage": {
"type": "collage",
"blocks": {
"video": {
"type": "video",
"settings": {
}
},
"product": {
"type": "product",
"settings": {
}
},
"collection": {
"type": "collection",
"settings": {
}
}
},
"block_order": [
"video",
"product",
"collection"
],
"settings": {
}
},
"video": {
"type": "video",
"settings": {
}
},
"multi_column": {
"type": "multicolumn",
"blocks": {
"column1": {
"type": "column",
"settings": {
}
},
"column2": {
"type": "column",
"settings": {
}
},
"column3": {
"type": "column",
"settings": {
}
}
},
"block_order": [
"column1",
"column2",
"column3"
],
"settings": {
}
}
},
"order": [
"image_banner",
"rich_text",
"featured_products",
"collage",
"video",
"multi_column"
]
}

 

Replies 2 (2)
ksun
New Member
1 0 0

Previously the index.liquid file only had {{ content_for_index }} in it. This provided the sequence in which the sections are displayed on the home page as specified in the settings_data.json. If have to change anything on the home page besides the sequence then you change the template or the appropriate section file 

SagarikaDas
Shopify Partner
231 23 83

Hello @xGhost,

You can also add your code to the Homepage from the theme editor using the "Custom Liquid" section or block whichever you need.

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution!