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.
hello @Fussigabor
Go to online store ----> themes ----> actions ----> edit code ---->assets ---->theme.css...>.
add the code end of the file
.card-page.section-padding.wrapper--full {
display: none;
}
Buy me a Pizza
If this was helpful, hit the like button and accept the solution.
Thanks
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
Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-TekLabs to discuss practical strategies for...
By JasonH Nov 13, 2024The year-end shopping spree is around the corner! Is your online store ready for the ...
By JasonH Nov 10, 2024