Hello,
I’ve been having a conversation in another thread about how to make a button work like a woocommerce add to cart button. I have created this css and html code and I want to know if I can simply add the '.add_to_cart_button {/* Add your styling here */} and ‘id’ somewhere within this code and have this button work to add my item(s) to my cart. Is that possible?
.buttonCTCT{
background-color: #4CAF50;
border: none;
color: white;
padding: 16px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
-webkit-transition-duration: 0.4s;
transition-duration: 0.4s;
cursor: pointer;
border-radius: 15px;
}
.buttonCTCT1{
background-color: white;
color: black;
border: 2px solid #4CAF50;
}
.buttonCTCT1:hover {
background-color: #4CAF50;
color: white;
}
0-500 contacts