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
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