This topic has 8 replies, 2 voices, and was last updated 6 years, 8 months ago ago by Rose Tyler
How to move add to cart above product description on single product page?
How to center price and reviews under title on mobile and on full site as well?
Thank you.
Hello,
1. Copy content-single-product.php file from legenda/woocommerce folder to legenda-child/woocommerce folder and edit the file – http://prntscr.com/iq3scy http://prntscr.com/iq3sih
2. Please use this code:
.single-product-page .product-info .price, .single-product-page .product-info .short-description {
float: none;
text-align: center;
display: block;
}
.single-product-page .product-info .short-description h6 {
text-align: center !important;
}
Regards
Thank you, Rose! You have been the lifesaver.
How to center the review stars too?
You’re welcome!
.woocommerce-product-rating {
text-align: center;
}
.single-product-page .product-info .star-rating {
float: none;
}
Regards
Thank you so much! I do have final request. I tried it to do myself but could not.
How to center the the “add to cart
Please change this code http://prntscr.com/iqln0i
to
.woocommerce-product-rating, .single-product-page .product-info form.cart {
text-align: center;
}
.single-product-page .product-info .star-rating, .single-product-page .product-info .button {
float: none;
}
Regards
Thank you!
You’re welcome!
Regards
The issue related to '‘How to move add to cart above product description?’' has been successfully resolved, and the topic is now closed for further responses