Hide PreFooter at cart page

Solved

Hide PreFooter at cart page

Fussigabor
Excursionist
18 0 2

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:

https://bogrebarat.hu/cart

Accepted Solution (1)

Rahul_dhiman
Shopify Partner
820 155 172

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

Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront

Contact here


BEST CUSTOMER ACCOUNTS APP WITH CUSTOM WISHLIST OPTION 
TRY OUR APP :

PWC: Customer Accounts & Pages

View solution in original post

Replies 6 (6)

ZestardTech
Shopify Partner
6142 1097 1473

Hi @Fussigabor 

Do you want to hide this section?

ZestardTech_0-1726570293420.png

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing
Fussigabor
Excursionist
18 0 2

Hello! Yes. 🙂

ZestardTech
Shopify Partner
6142 1097 1473

Hi @Fussigabor 

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 != 'cart' %}
    <style>
      #Newsletter--sections--23453488906579__section_newsletter_X9jLEe {
        display: none!important;
      }
    </style>
{% endif %}

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing

Bundler-Manuel
Astronaut
1009 51 119

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

Emmanuel
Please let me know if it works by marking it as a solution!
Bundler - Product Bundles app, a great bundle app for Shopify, with glowing user testimonials and a free plan.
Fussigabor
Excursionist
18 0 2

Hm, I don't quite understand what the code should look like.

Rahul_dhiman
Shopify Partner
820 155 172

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

Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront

Contact here


BEST CUSTOMER ACCOUNTS APP WITH CUSTOM WISHLIST OPTION 
TRY OUR APP :

PWC: Customer Accounts & Pages