This topic has 6 replies, 2 voices, and was last updated 2 minutes ago ago by Luca Rossi
Sorry for the many questions..Is it possible to use an icon instead of text in Design type: Default when the setting: Add to cart with quantity is turned off? If we turn this option on, instead of text there will be a cart icon, but we don’t need this feature, and we want to see an icon instead of text to fit in front of the price, is it possible?
Hi @Goostaf,
The fastest way is using the custom CSS codes, please try adding this custom CSS codes:
.product-details .add_to_cart_button {
text-indent: -99999px;
position: relative;
}
.product-details .add_to_cart_button::before {
content: "\e93e";
font-family: xstore-icons;
position: absolute;
left: 6px;
width: 20px;
height: 20px;
color: #fff;
opacity: 1;
text-indent: 0;
font-size: 18px;
top: 6px;
}
Let us know how it goes!
Thanks, is it possible to square the button? It’s like it’s rectangular now, the same as when Add to cart with quantity is enabled
Dear @Goostaf,
We can force the width & height of the buttons:
.product-details .add_to_cart_button {
text-indent: -99999px;
position: relative;
width: 40px;
height: 40px;
}
.product-details .add_to_cart_button::before {
content: "\e93e";
font-family: xstore-icons;
position: absolute;
left: 10px;
width: 20px;
height: 20px;
color: #fff;
opacity: 1;
text-indent: 0;
font-size: 18px;
top: 8px;
}
Hope it helps!
its thanks, but now how to move to the right against the price, so that it would be the same as with the enabled setting Add to cart with quantity (screenshot)
Hi @Goostaf,
Please use this custom CSS codes:
.product-details {
max-height: 100px;
}
.product-details .add_to_cart_button {
text-indent: -99999px;
position: relative;
width: 40px;
height: 40px;
top: -45px;
float: right;
}
.product-details .add_to_cart_button::before {
content: "\e93e";
font-family: xstore-icons;
position: absolute;
left: 10px;
width: 20px;
height: 20px;
color: #fff;
opacity: 1;
text-indent: 0;
font-size: 18px;
top: 8px;
}
Best Regards,
The 8Theme Team.
You must be logged in to reply to this topic.Log in/Sign up