How do I remove the cart and account login from my site header?

Topic summary

A user seeks to remove the cart and account login elements from their site header using the Refresh theme, as these features won’t be needed.

Solutions Provided:

  • Shopify Settings Approach: Disable the “Show login link in header” option via Shopify Admin → Settings → Customer accounts. This solution was tested but did not work for the user.

  • CSS Code Solution: Add custom CSS code to the theme.liquid file before the </body> tag to hide both elements using display:none styling. This approach successfully resolved the issue.

  • Manual Theme Editing: Alternatively, directly edit the header.liquid file to comment out or remove cart/login code, or check theme settings for built-in hiding options.

Status: Resolved. The CSS code method effectively removed both header elements as requested.

Summarized with AI on October 30. AI used: claude-sonnet-4-5-20250929.

Hi all,

I am trying to figure out how to remove the cart and account login sections of my site in the header. I will not be using them. I tried researching this but not finding much about how to do this. My theme is Refresh. You can view my website by visiting www.PennsylvaniaParks.org.

Thank you in advance :slightly_smiling_face:

Hello @Justin34
This is Amelia at PageFly - Shopify Advanced Page Builder app.

You can try the following steps I have provided to help you solve the problem you are facing:
Step 1: To set the accounts, go to the Shopify Admin → Open “Settings”.
Step 2: Click on the ‘Customer accounts’ → ‘Edit’:

Step 3: Disable option "Show login link in the header of online store and at checkout"

Hoping my solution helps you solve your problem.

Best regards,

Amelia | PageFly

1 Like

Hello @Justin34 ,

I understand you are looking to hide the Account login and cart icon on the header section.

Please add the below mentioned code at the bottom of theme.liquid file before tag and save.


Output -

I hope this helps.

Please let me know if you have any query.

Thank you.

1 Like

Hi Amelia, I tried your solution and sadly it dont work. The account login and cart buttons are still present. Thank you for your reply though.

That worked perfectly. Thank you so much!!

If your theme Refresh doesn’t have built-in settings to remove the cart and account login from the header, you might need to edit the theme’s header.liquid file. Look for code related to the cart and login elements and comment them out or remove them. Also, check if your theme settings allow hiding these sections without coding.