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

Solved

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

Justin34
Trailblazer
345 0 91

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 🙂

ALL I THINK ABOUT IS OUR PARKS 🙂
Accepted Solution (1)

Anshul_arora
Navigator
453 129 106

This is an accepted solution.

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 </body> tag and save.

<style>
.header__icons {
display: none !important;
}
</style>

 

Output -

Anshul_arora_0-1710765211945.png

 

I hope this helps.

Please let me know if you have any query.

Thank you.

Please remember to like and accept the solution to help other store owners.

For Shopify Design & Development | Custom Coding -Visit Here

View solution in original post

Replies 5 (5)

PageFly-Amelia
Shopify Partner
626 165 238

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’: 

PageFlyAmelia_1-1710726579965.png

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

PageFlyAmelia_2-1710726917111.png

 

Hoping my solution helps you solve your problem.

Best regards,

Amelia | PageFly



Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 
➜ Weekly updated Shopify tutorials on YouTube 


All features are available from Free plan. Live Chat Support is available 24/7.

Justin34
Trailblazer
345 0 91

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.

ALL I THINK ABOUT IS OUR PARKS 🙂

Anshul_arora
Navigator
453 129 106

This is an accepted solution.

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 </body> tag and save.

<style>
.header__icons {
display: none !important;
}
</style>

 

Output -

Anshul_arora_0-1710765211945.png

 

I hope this helps.

Please let me know if you have any query.

Thank you.

Please remember to like and accept the solution to help other store owners.

For Shopify Design & Development | Custom Coding -Visit Here
Justin34
Trailblazer
345 0 91

That worked perfectly. Thank you so much!!

ALL I THINK ABOUT IS OUR PARKS 🙂

MRio89
Visitor
1 0 0

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.