remove profile and chart from header

Topic summary

A user seeks to remove the profile icon and shopping cart from their Shopify store header on both desktop and mobile versions.

Solutions Provided:

  • CSS Method (GTLOfficial): Add custom CSS to base.css file using display: none !important; to hide the header icons.

  • Alternative CSS (Moeed): Insert CSS code in theme.liquid file above the </body> tag to hide the elements.

  • Complete Removal (Laza_Binaery): Suggests editing the header.liquid file directly to delete specific code lines (237-264 for customer icon, 273-288 for cart) rather than just hiding with CSS. Recommends backing up the file first.

Resolution: The original poster confirmed one of the CSS solutions worked successfully on both mobile and web versions.

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

Artez_0-1748504830872.png

I want to remove the profile and the chart from header.
please sea the difference between web and mobile.

I want to erase it in both version at all.

Thank you for your help.

https://wmqgez-r2.myshopify.com/

1 Like

Hello @Artez
Go to online store ----> themes ----> actions ----> edit code ----> base.css
add this code at the end of the file and save.

.header__icons.header__icons--localization.header-localization {
display: none !important;
}

result

If this was helpful, hit the like button and accept the solution.
Thanks

Hey @Artez

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

Moeed_0-1748505278634.png

If I managed to help then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

1 Like

Hi @Artez

You can hide it with CSS like others are suggesting but also if you want to remove ti completely you can remove a few lines.

Check

https://github.com/Shopify/dawn/blob/d2580d5cdb51553b1d7ed73ed132aa1e17e5842b/sections/header.liquid#L211

there whole section is starting, you can remove all or lines 237-264 for customer icon and 273-288 for cart.

Backup file and test.

Thank you Mr Proffesional. Works amazing on both mobile and web.