Hello everyone,
So I’m trying to change my header icons to show text instead of icons.
Can anyone help me figure it out?
Thanks
A user seeks to replace header icons with text labels in their Shopify store.
Initial Solution:
.header__icon--account, .header__icon--search, and .header__icon--cart classesRefinements:
6.4rem) for proper alignmentResolution:
The issue was successfully resolved with the adjusted CSS code, achieving proper text display and spacing in the header.
Hello everyone,
So I’m trying to change my header icons to show text instead of icons.
Can anyone help me figure it out?
Thanks
@StudioBlank - please add this css to the very end of your base.css file and check,
Shopify Admin → Online Store ->Theme → Edit code → base.css
.header__icon--account span{position: relative !important; overflow: visible;}
.header__icon--account account-icon{display: none;}
.header__icon--cart .svg-wrapper{display: none;}
.header__icon--cart span.visually-hidden{position: relative !important; overflow: visible;}
.header__icon--search{content: "search";}
.header__icon--search span{display: none;}
.header__icon--search{display: flex; align-items: center;}
@StudioBlank can you please add the given code? so it appears like that and I can check
Okay done.
@StudioBlank – for search , add this line and check
.header__icon--search:after{content: "search";}
This code doesn’t work but I don’t need it anymore. I just want to fix the Login text and have some space between Login and Cart, like a margin of 1rem
@StudioBlank add this and check
.header__icon--account{height: 6.4rem !important; width: 6.4rem !important;}
.header__icon--account span{width: 100%;}
Yessir now it works. Thanks