Shopify themes, liquid, logos, and UX
Hi,
How do I hide footer on homepage only.. I want the footer displayed on product and other pages just not on the homepage..
store link: https://www.nutravalid.com/
Any help is greatly appreciated.
Solved! Go to the solution
This is an accepted solution.
Hi @technase
check this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes"
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag.
{% if template.name == 'index' %}
<style>
m-footer.m-footer.m\:block {
display: none;
}
</style>
{% endif %}
And Save.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi, @technase
Please open online store -> theme -> customize -> edit code -> footer.liquid.
{% style %}
.footer {
.....
{% if template.name == 'index' %}
display: none;
{% endif %}
}
.....
{%- endstyle -%}
This is an accepted solution.
Hi @technase
check this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes"
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag.
{% if template.name == 'index' %}
<style>
m-footer.m-footer.m\:block {
display: none;
}
</style>
{% endif %}
And Save.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Thank you it worked
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025