Home › Forums › WoodMart support forum › CSS CUSTOM FOR PRODUCT PAGE
CSS CUSTOM FOR PRODUCT PAGE
- This topic has 3 replies, 2 voices, and was last updated 3 years, 5 months ago by Elise Noromit.
-
AuthorPosts
-
June 24, 2021 at 3:37 pm #302233
Riccardo95ParticipantHi Guys,
I’m developing another website using your theme. I copied this css from another website ( http://www.newmottinoxsrl.it)
CODE:
Global Custom CSS:
.single_add_to_cart_button {
background-color: #3cca94;
min-width:230px;
height: 70px
}
body .quantity input[type=button] {
min-width: 25px;
height: 70px;
}
body .quantity input[type=number] {
width: 30px;
height: 70px;
}
.btns-shop-light .cart-totals-inner .checkout-button {padding: 25px 30px 25px 30px;
}
button#place_order {padding: 30px 30px 30px 30px;
font-size: 18px;
}
.wc-stripe-elements-field, .wc-stripe-iban-element-field {padding: 20px;
}
body.woocommerce-checkout input[type=text],
body.woocommerce-checkout input[type=email],
body.woocommerce-checkout input[type=password],
body.woocommerce-checkout input[type=search],
body.woocommerce-checkout input[type=number],
body.woocommerce-checkout input[type=url],
body.woocommerce-checkout input[type=tel],
body.woocommerce-checkout input[type=date],
body.woocommerce-checkout select,
body.woocommerce-checkout textarea {
padding: 0 15px;
max-width: 100%;
width: 100%;
height: 60px;
border: 2px solid rgba(129,129,129,.2);
border-radius: 0;
background-color: transparent;
box-shadow: none;
vertical-align: middle;
font-size: 14px;
transition: border-color .5s ease;
}Custom CSS for desktop
.product-template-default .price .amount {
font-size: 42px;
}
.archive .price .amount{
font-size: 40px;
}
.single_add_to_cart_button {
background-color: #3cca94;
min-width:400px;
height: 70px
}Custom CSS for mobile
.product-template-default .price .amount {
font-size: 24px;
}
.archive .price .amount{
font-size: 18px;
}
.site-content {
margin-top: -32px;I copied in this website: https://test.udigit.it/prodotto/amaro-sibona/
But how u can see i dont see the big add to cart button on the mobile version and the sticky button is also smaller than the quantity selector. How can i fix it? Is there any mistake in the code? Cause in the other website is working fine
June 24, 2021 at 10:47 pm #302286
Elise NoromitMemberHello,
Remove the CSS and check the items, if you want to change something rewrite the CSS from scratch.
If you have any questions or need any help, please feel free to contact us.
Best Regards
June 26, 2021 at 9:28 am #302651
Riccardo95ParticipantHi Guys,
What do you mean? We develop that code togheter and is working fine in another website. Why is not on this one? I can’t find any mistake in the code.
1) In the first screenshot the button is fine, desktop version
2) Second screenshot: On the mobile view the quantity is big and the add to cart button is smaller and red.
3) In the third one the sticky button has the same problems.How can i fix it?
Attachments:
You must be logged in to view attached files.June 26, 2021 at 7:21 pm #302757
Elise NoromitMemberHello,
Try to add all the styles to the Theme Settings > Custom CSS > General, so that the styles would apply on all the devices.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register