This topic has 23 replies, 3 voices, and was last updated 4 years, 9 months ago ago by Olga Barlow
Hello
It is possible with this thema to make a button like this
Thank you very much
Hello,
Try to use the next custom CSS code:
.single_add_to_cart_button:before {
background-color: red;
padding: 11.5px 15px;
margin-right: 20px;
border-radius: 5px 0 0 5px;
margin-left: -1px;
color:white;
font-size: 12px;
}
.single_add_to_cart_button.button {
min-width: 150px;
border-radius: 5px;
padding-left: 0;
padding-right: 25px;
background-color: #f7c549;
border-color: #ffcc4d;
color: black;
}
Regards
Rose it is perfect but i have this problem on the home page
https://prnt.sc/r9sdvr
Do you want to have such styling on the Home page only or for all “add to cart” buttons on the site?
Regards
for all
for all button add to cart
Change the previous code to:
.product-details .add_to_cart_button:before {
content: "\e90c";
}
.single_add_to_cart_button:before,
.products-loop .product-details .add_to_cart_button:before {
background-color: #b71c1c;
padding: 11px 15px;
margin-right: 20px;
border-radius: 5px 0 0 5px;
margin-left: -1px;
color: white;
font-size: 1rem;
}
.single_add_to_cart_button.button,
.products-loop .product-details .add_to_cart_button {
min-width: 150px;
border-radius: 5px !important;
padding-left: 0;
padding-right: 25px;
background-color: #f7be68;
color: black;
border: none !important;
max-height: 37px;
}
.products-loop .product-details .add_to_cart_button {
padding-top: 10px;
}
.products-loop .product-details .add_to_cart_button:hover{
color: white;
background-color: #4c4c4c;
}
Regards
it is perfect rose but in the related products it not change the button???
Hello,
Replace previous code by the following
.product-details .add_to_cart_button:before {
content: "\e90c";
}
.single_add_to_cart_button:before, .products-loop .product-details .add_to_cart_button:before, .products-grid .product-details .button:not(.compare):before, .product-slide .product-details .button:not(.compare):before {
background-color: #b71c1c;
border-radius: 5px 0 0 5px;
margin-left: -1px;
margin-right: 20px;
color: white;
font-size: 1rem;
padding: .91rem;
padding-bottom: .91rem;
}
.single_add_to_cart_button.button, .products-loop .product-details .add_to_cart_button, .products-grid .product-details .button:not(.compare), .product-slide .product-details .button:not(.compare) {
min-width: 150px;
border-radius: 5px !important;
padding-left: 0;
padding-right: 25px;
background-color: #f7be68;
color: black;
border: none !important;
padding-top: .91rem;
padding-bottom: .91rem;
}
.products-loop .product-details .add_to_cart_button {
padding-top: 10px;
}
.products-loop .product-details .add_to_cart_button:hover{
color: white;
background-color: #4c4c4c;
}
Regards
perfect thank you thank you
for responsive mobile is the same right?
Hello,
Did you face any issues on mobile devices after the changes?
Regards
no its ok
On the product page what is happens???
on the button add to cart…..
Hello,
I suppose you switched to single product builder. Do you plan to use single product builder or pre-created layouts for the single product? Provide us with WP Dashboard access to your site, it will be faster to improve styles than to post code here.
Regards
yes i use single product builder.
Don’t forget to check and for the mobile version as well the button
Hello,
Check now.
Regards
i have refresh the page and is dissapear the button
can you verify please
Hello,
You overwrote my changes in the child theme style.css file. I won’t be able to help you if you edit child theme styles at this moment because you will always remove my changes.
Regards
sorry olga, please proceed now
solved thank you
Hello,
Done.
Regards
You must be logged in to reply to this topic.Log in/Sign up