Please add the following code at the bottom of your assets/theme.css file.
.header__icon-touch+.header__icon-touch{
display: none;
}
Hope this works.
Thanks!
Issue: User needed to hide the cart icon in the Spark theme header without breaking the entire header layout.
Solutions Provided:
Multiple developers offered CSS code snippets to hide the cart icon by adding rules to the assets/theme.css file. The solutions varied slightly in selector syntax but all targeted the cart icon element:
.header__icon-touch.no-transition a:nth-of-type(2) { display:none!important; }.header__icon-touch.no-transition:nth-child(2) { display:none!important; }.header__icon-touch + .header__icon-touch { display: none; }Outcome: The original poster confirmed all solutions worked perfectly.
Follow-up Questions:
Both follow-up questions remain unanswered.
Please add the following code at the bottom of your assets/theme.css file.
.header__icon-touch+.header__icon-touch{
display: none;
}
Hope this works.
Thanks!