Delete header in cart page, but not in the rest of the web

Topic summary

A user seeks to hide the header specifically on the cart page while keeping it visible on other pages of their website.

Initial Solution Attempt:

  • A developer provides CSS code to be added to the theme.liquid file that targets the cart page template
  • The code uses conditional logic to hide the header wrapper when the page template equals “cart”
  • This initial solution doesn’t work for the user

Resolution:

  • After the user shares their collaborator request code, the developer gains access to the store
  • The developer successfully implements a working solution
  • Screenshots confirm the header is now hidden on the cart page

Outcome:

  • Issue resolved successfully
  • The user expresses interest in ongoing collaboration for future e-commerce projects (3-10 new stores per year)
  • Developer offers continued support via WhatsApp for future needs
Summarized with AI on November 4. AI used: claude-sonnet-4-5-20250929.

I want to delete header in cart page, but not in the rest of the web. Please help

theme sense

https://bellajovenradiante.com/cart

1 Like

Hello @MaximMoneyVega

Go to Online Store, then Theme, and select Edit Code.
Search for Layout/theme.liquid
Add the provided code at the end of the file.

{% if template.name == "cart" %}
.header-wrapper--border-bottom {
display: none;
}
{% endif %}

Hi, thanks for answering. Im afraid its not working

1 Like

Hello @MaximMoneyVega

Can you share the collaborator request code with me so I can add it?

@MaximMoneyVega – add this style and code below it before and it should work

8415
and thanks @devcoders

1 Like

Hello @MaximMoneyVega
I have sent you a request. Please accept it and message me on WhatsApp at +91 8516919310 so we can discuss any other issues there, if needed.

1 Like

Perfect, I usully make 3-10 new stor per year (ecommerce). Would be great to have a coder I can trust

1 Like

Hello @MaximMoneyVega
Please check; I have completed the tasks.

1 Like

Hello @MaximMoneyVega

Sure, please message me on WhatsApp so we can discuss all eCommerce projects and other details.

Thanks a million

1 Like

Hello @MaximMoneyVega

You’re very welcome! I’m thrilled to hear that you’re pleased with the outcome. Don’t hesitate to reach out if you need further assistance.

like and accepting the All solution. Thank you!