Liquid, JavaScript, themes, sales channels
I have created a new design and tested it using a template.
Now I want to have this new design to load on the homepage but I'm not sure how to do that since this design uses a new layout.
{% layout 'v2' %}
{% section 'homepage-v2' %}
{% section 'reviews-v2' %}
As you can see, I'm using a layout file called v2 in my template file but I couldn't find an option to replace the default theme.liquid layout in settings_data.json
"current": {
"tbc-homepage-v2": {
"type": "homepage-v2",
"settings": {}
},
"reviews-v2": {
"type": "reviews-v2",
"settings": {}
},
"content_for_index": [
"tbc-homepage-v2",
"reviews-v2"
]
}
How to change the layout to v2.liquid on the homepage?
Solved! Go to the solution
This is an accepted solution.
Fixed by adding {% layout 'v2' %} to index.liquid
This is an accepted solution.
Fixed by adding {% layout 'v2' %} to index.liquid
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024