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">
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024