Reply 354537 to: How can I center align the ‘Add to Cart’ button for each product?

Avatar: Tony Rodriguez
Tony Rodriguez
Support staff
April 26, 2023 at 08:49

Hello, Catholicans,

We kindly request that you copy and paste the following CSS code to XStore >> Theme Options >> Theme Custom CSS >> Global CSS in order to center align the ‘Add to Cart’ button for related products on single product page. After doing so, please clear your browser cache and check back to your site.

The CSS code is as follows:

.single-product .quantity-wrapper a.button.wp-element-button.product_type_simple.add_to_cart_button.ajax_add_to_cart{
    left: 30% !important;
}

We hope this will solve your issue.

Best Regards,
8Theme’s Team

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.