Shopify themes, liquid, logos, and UX
Hello! In the Pre-Footer section of our website we have subscribe to the newsletter block, which we want to hide on the cart page. Is it possible? Could you please help me?
Our cart/shop:
Solved! Go to the solution
This is an accepted solution.
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
{%- if template.name == 'cart' -%}
<style>
.index-newsletter {
display: none;
}
</style>
{%- endif -%}
Thanks
Hi @Fussigabor
Do you want to hide this section?
Hello! Yes. 🙂
Hi @Fussigabor
{% if template != 'cart' %}
<style>
#Newsletter--sections--23453488906579__section_newsletter_X9jLEe {
display: none!important;
}
</style>
{% endif %}
Hello there! @Fussigabor to hide the footer section all you need to do is make minor changes to the code. You can see all the steps you should need clearly here https://www.hulkapps.com/blogs/shopify-hub/mastering-the-art-of-removing-headers-and-footers-in-shop...
Hm, I don't quite understand what the code should look like.
This is an accepted solution.
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
{%- if template.name == 'cart' -%}
<style>
.index-newsletter {
display: none;
}
</style>
{%- endif -%}
Thanks
Learn 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, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025