Hi Guys,
I would like to replace the button (cart and search) with text only on desktop version. I would also like to remove the profile icon and add my contact page. Please see the screenshot for a better understanding. I would appreciate your help.
Thanks in advance.
URL: https://basicbastard.co/
suyash1
November 24, 2022, 1:24pm
2
@basicbastardco - please add following css to the very end of your base.css file and check
@media screen and (min-width:750px){
.header__icon--search{display: flex; justify-content: center; align-items: center;}
.header__icon--search:before {content: "search";}
.header__icon--search .icon{display:none; visibility:hidden;}
a#cart-icon-bubble:before {content: "cart";}
a#cart-icon-bubble{display:none; visibility:hidden;}
}
It worked for search but not for cart. Also, I want to replace the profile button with the contact button. Similar to screenshot.
suyash1
November 24, 2022, 3:24pm
4
@basicbastardco - i can not see the code, can you please add again to check?
@media screen and (min-width:750px){
.header__icon–search{display: flex; justify-content: center; align-items: center;}
.header__icon–search:before {content: “search”;}
.header__icon–search .icon{display:none; visibility:hidden;}
a#cart-icon-bubble:before {content: “cart”;}
a#cart-icon-bubble{display:none; visibility:hidden;}
}
suyash1
November 24, 2022, 3:36pm
6
@basicbastardco - not here, on to your site
@basicbastardco
Try to add this code at the end of Theme > Edit code > assets > base.css file
@media screen and (min-width: 989px) {
.header__icons {
gap: 10px;
}
.header__icon--search:before {
content: 'Search';
}
.header__icon--search {
display: flex !important;
flex-direction: column !important;
justify-content: center !important;
}
.header__icon--account svg,
.header__icon--cart svg,
.header__icon--search span {
display: none !important;
}
.header__icon--cart:before {
content: 'Cart';
}
.header__icon--cart {
display: flex !important;
flex-direction: column !important;
justify-content: center !important;
}
.header__icon--account:before {
content: 'Contact';
}
.header__icon--account {
display: flex !important;
flex-direction: column !important;
justify-content: center !important;
}
.header__search {
line-height: unset !important;
}
}
Try it and let me know
Just did, this is how it looks.
suyash1
November 24, 2022, 4:03pm
9
Please check now. Sorry for the inconvenience.
suyash1
November 24, 2022, 4:14pm
12
@basicbastardco - add this too and check
.header__icon, .header__icon--cart .icon {height: 4.4rem; width: 5.7rem;}
@media screen and (min-width: 989px){
.header__icons {gap: 30px!important;}
}