We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to change Header icons to display text

Solved

How to change Header icons to display text

StudioBlank
Shopify Partner
82 3 30

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

cy.png

www.studioblank.store

᥇ꪶꪖꪀᛕ ᦓꪻꪊᦔ꠸ꪮ
Accepted Solution (1)
suyash1
Shopify Partner
11112 1367 1751

This is an accepted solution.

@StudioBlank add this and check

 

.header__icon--account{height: 6.4rem !important; width: 6.4rem !important;}
.header__icon--account span{width: 100%;}
To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com

View solution in original post

Replies 8 (8)

suyash1
Shopify Partner
11112 1367 1751

@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;}
To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com
StudioBlank
Shopify Partner
82 3 30

How do I prevent this from happening when I log out? I want it to be in one line.

srg.PNG

᥇ꪶꪖꪀᛕ ᦓꪻꪊᦔ꠸ꪮ
suyash1
Shopify Partner
11112 1367 1751

@StudioBlank  can you please add the given code? so it appears like that and I can check

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com
StudioBlank
Shopify Partner
82 3 30

Okay done.

᥇ꪶꪖꪀᛕ ᦓꪻꪊᦔ꠸ꪮ
suyash1
Shopify Partner
11112 1367 1751

@StudioBlank -- for search , add this line and check

 

.header__icon--search:after{content: "search";}
To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com
StudioBlank
Shopify Partner
82 3 30

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

᥇ꪶꪖꪀᛕ ᦓꪻꪊᦔ꠸ꪮ
suyash1
Shopify Partner
11112 1367 1751

This is an accepted solution.

@StudioBlank add this and check

 

.header__icon--account{height: 6.4rem !important; width: 6.4rem !important;}
.header__icon--account span{width: 100%;}
To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com
StudioBlank
Shopify Partner
82 3 30

Yessir now it works. Thanks

᥇ꪶꪖꪀᛕ ᦓꪻꪊᦔ꠸ꪮ