AdamBlyth Posted August 10 Share Posted August 10 (edited) I used the following code (add via Page Header Code Injection) to change the size and center-align the Add To Cart button // Reduce size of Add To Cart button & centre // <style> .sqs-add-to-cart-button { padding-top: 15px !important; padding-bottom: 15px !important; } .sqs-add-to-cart-button-wrapper { margin: 0 auto; text-align: center !important; } </style> Works well here: https://www.adamblyth.com.au/2025-calendar password: testtest However, when I click on the image to see more details of the product, the Add To Cart button is also centre aligned. I'd like that button to remain left aligned: https://www.adamblyth.com.au/2025-calendar/p/style-01-ej5na-xd9rg Edited August 12 by AdamBlyth Link to comment
Solution tuanphan Posted August 12 Solution Share Posted August 12 You can use this CSS code under <style> .ProductItem-quantity-add-to-cart .sqs-add-to-cart-button-wrapper { margin-left: 0px !important; } </style> AdamBlyth 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment