How can I remove search and cart icons from my website header?

Topic summary

A user running the Motion theme wants to remove search and cart icons from their website header but lacks coding experience and cannot find the base.css file mentioned in existing tutorials.

Solution provided:

  • Navigate to Shopify admin → Online Store → Themes → Actions → Edit code
  • Locate the CSS file (base.css, style.css, or theme.css) in the Assets folder
  • Add specific CSS code at the bottom to hide the icons using display: none
  • For Motion theme specifically, paste the code in theme.css.liquid

CSS code snippet:

a.site-nav__link.site-nav__link--icon.js-search-header.js-no-transition,
svg.icon.icon-bag-minimal {
  display: none;
}

The solution was successfully tested and confirmed working by the original poster. Screenshots were shared showing the header before modification.

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

Hi. I would like to remove the search and cart icons from the header. I found some tips regarding editing the code in base.css but I don’t have that kind of file in my Motion theme. Also I am not good at coding.

I attach some files for reference

Screenshot 2023-11-17 at 15.16.48.png

1 Like

Hi @Marb2023

Would you mind to share your Store URL website? with password if its unpublish. Thanks!

1 Like

Sure, here is the link:

1 Like

Thanks for the info, check this one.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
a.site-nav__link.site-nav__link--icon.js-search-header.js-no-transition,
svg.icon.icon-bag-minimal {
    display: none;
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

Hi, could you please help me with my question?

1 Like

Thank you so much, it worked :))

Hi @JackHampel

Sorry., I didnt notice your reply here. Seems like youve already solved it.