How to Remove/Hide the Footer on the Cart Page?

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

  1. Theme Edit → open theme.liquid .

  2. find {% section ‘footer’ %}

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

  1. From your Shopify admin, go to Online store > Themes

  2. Find the DAWN theme, click on Actions > Edit code

  3. Open the theme.liquid file.

  4. Find this code.

{% section 'footer' %}

  1. Replace the code with the following:
{% unless template.name == 'cart' %}
  {% section 'footer' %}
{% endunless %}
  1. Hit Save

I hope my answer can help.

2 Likes

Thank you so much! It worked

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?