Remove blank space in Footer

Topic summary

A user is experiencing unwanted blank space in the footer, appearing only on the cart page of their Shopify store.

Proposed Solutions:

Three different community members offered similar CSS-based fixes, all involving:

  • Navigating to Online Store → Theme → Edit code
  • Opening the theme.liquid file
  • Adding custom CSS code before the </head> tag

The solutions use conditional logic to target specifically the cart page template and adjust styling (likely setting minimum height or hiding elements) to eliminate the extra space.

Status: Multiple solutions provided, awaiting confirmation from the original poster on which approach successfully resolved the issue. The discussion remains open with no confirmed resolution yet.

Summarized with AI on November 6. AI used: claude-sonnet-4-5-20250929.

Hi, I’m looking to remove the blank space in my footer. It’s only showing on my “cart” page.

19thfairwayco.com

1 Like

Hi @19thfairway ,

Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above tag:

{% if template.name == 'cart' %}
    
{% endif %}

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

Hi @19thfairway ,

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.
    2. Open your theme.liquid file
  2. Paste the below code before on theme.liquid

Was my reply helpful? Click Like to let me know!

Was your question answered? Mark it as an Accepted Solution and click like.

Hi @19thfairway , kindly use the below instructions and code.

  1. Go to Online Store → Theme → Edit code.
  2. Open your theme.liquid file
  3. In theme.liquid, paste the below code before

{% if template.name == ‘cart’ %}

main#MainContent { min-height: 48vh; }

{% endif %}

If my reply is helpful, kindly click like and mark it as an accepted solution.

Thanks!