Liquid, JavaScript, themes, sales channels
i want to change the design layout based on the home page and other subpages how I can apply css based on templates
Solved! Go to the solution
This is an accepted solution.
i found the answer on https://www.shopify.in/partners/blog/92262598-creating-useful-css-hooks-in-liquid
edit your theme.liquid file
<main id="content" class=" {% if template == 'index' %}content_home_index{% else%}non_home
{% endif %}" role="main">
This is an accepted solution.
i found the answer on https://www.shopify.in/partners/blog/92262598-creating-useful-css-hooks-in-liquid
edit your theme.liquid file
<main id="content" class=" {% if template == 'index' %}content_home_index{% else%}non_home
{% endif %}" role="main">
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