@JWEMPIRE you can use same condition for home page and product page differentiation.
{% if template contains 'product' %} //Add product code here {% endif %}
Let me know if you need help.
@SallyJane yes, image tag will load different(Or override ) URL on home and product or collection page rest code are same.
you can make condition in layout->theme.liquid file like
{% unless template contains '404' %} {% section 'footer.liquid' %} //or here is your existing footer code that's in theme.liquid file. {% endunless %}
You can make same condition for header and other pages
Add this code in layout/theme.liquid file before </body>
{% if template contains 'collection ' or template contains 'product' %}
<style>
.site-header{display:none;}
</style>
{% endif %}
User | Count |
---|---|
445 | |
208 | |
110 | |
89 | |
86 |