Hi
I’d like to hide the footer section on my cart page so that when people are in the cart, they don’t get distracted and click to a different page.
How would I go about doing this? I still need the footer to show on every other page except for the cart.
I use the Dawn 2.0 Theme
Hello @achievementjour
Please follow these instructions to hide footer on cart page
Theme Edit → open theme.liquid .
find {% section ‘footer’ %}
replace the line of 2nd point {% section ‘footer’ %} with below code
{% unless template contains ‘cart’ %}
{% section ‘footer’ %}
{% endunless %}
1 Like
Hi @achievementjour ,
Please follow the below steps to hide your footer on the cart page:
From your Shopify admin, go to Online store > Themes
Find the DAWN theme, click on Actions > Edit code
Open the theme.liquid file.
Find this code.
{% section 'footer' %}
Replace the code with the following:
{% unless template.name == 'cart' %}
{% section 'footer' %}
{% endunless %}
Hit Save
I hope my answer can help.
2 Likes
Thank you so much! It worked
system
November 19, 2022, 7:01pm
5
Hi, I also needed to hide the baseboard in the cart to avoid distractions. However, the space became large, I tried removing it in padding, but it didn’t work.
Hey @Niraj_singh will replacing ‘cart’ with other page name will work as well?