Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
hello! i want to show the footer in all the web, except in the home page, how can i do it? I am using Taste Theme. thanks a lot.
Hello There,
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find layout >theme.liquid and paste this at the bottom of the file:
{% if template.name == 'index' %}
<style>
.footer {
display: none;
}
</style>
{% endif %}
To show the footer on all Shopify website pages except the homepage when using the Taste theme, you can follow these steps:
{% unless template contains 'index' %}
5. Add the following code at the bottom of the file:
{% endunless %}
6. Save the file.
This code will check if the current page is the homepage (using the template
variable), and if it's not, it will display the footer. If it is on the homepage, the footer will not be displayed.
Note that this code will work for all pages except the homepage. If you want to hide the footer on specific pages other than the homepage, you can add their templates to the unless
statement separated by the or
operator. For example:
{% unless template contains 'index' or template contains 'page.contact' %}
This code will hide the footer on both the homepage and the contact page.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025