I wan’t to set the homepage to one of the static pages built in Shopify.
How should I be editing index.liquid to assign a different page as the homepage? The page name is /pages/shop-status.
Many thanks in advance
I wan’t to set the homepage to one of the static pages built in Shopify.
How should I be editing index.liquid to assign a different page as the homepage? The page name is /pages/shop-status.
Many thanks in advance
Hello,
{% assign page_name = 'shop-status' %}
{% assign page = pages[page_name] %}
{% if page.content != blank %}
# {{ page.title }}
{{ page.content }}
{% else %}
{{ content_for_index }}
{% endif %}
Let me know whether it works!
Worked a treat, thank you
Hello Diego, what would be the workaround if I have index.json instead of index.liquid
is there a way to then assign the current home page to a secondary navigation page? thanks
Diego do you have a solution to then use the home page within the main navigation but for another landing page? thanks