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
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024