Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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