I added a size chart and payment method section to the product page. But I can’t get the payment section to align nicely under the buy button.
My store id is: 2e208a.myshopify.com
A user is trying to align payment method icons and text to center beneath the buy button on their Shopify product page. The elements currently align to the left despite adding custom CSS code.
Attempted Solutions:
.ss-payment-list and .ss-payment-text classestheme.liquid or main-product.liquid filesCurrent Status:
max-width: 44rem and !important flags still produce no visual changesIssue remains unresolved - the payment icons continue aligning left despite multiple CSS interventions, suggesting possible conflicting styles or improper code implementation.
I added a size chart and payment method section to the product page. But I can’t get the payment section to align nicely under the buy button.
My store id is: 2e208a.myshopify.com
Hi @Lucas1200 ,
Or the below code:
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Hello! @Lucas1200 , Please follow these steps to add this CSS code:
product-info .ss-payment-list {
list-style: none;
display: flex;
flex-wrap: wrap;
justify-content: start;
padding: 0;
}
product-info .ss-payment-text {
width: 100%;
text-align: left;
}
Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.
Hi @Lucas1200 ,
Please add the CSS code in the theme stylesheet.
Style1:
=====
.ss-payment-list {
width: 100%;
justify-content: flex-start;
}
.ss-payment-text {
text-align: left;
}
Result:
====
Style2:
=====
.ss-payment-list {
width: 60%;
}
Result:
====
I hope this helps! If it does, please like it and mark it as a solution!
If you need further assistance, feel free to reach out!
Regards,
Sweans
Thanks! I want style 2. It works for the text but the icons are still aligned left… How to fix that?
See image below:
Hello! @Lucas1200, Please follow these steps to add this CSS code:
product-info .ss-payment-text {
text-align: left;
}
Hi @Lucas1200 ,
Please replace the old CSS code with the new one and let us know.
.ss-payment-list {
width: 100%;
max-width: 44rem;
}
I hope this helps! If it does, please like it and mark it as a solution!
If you need further assistance, feel free to reach out!
Regards,
Sweans
Nothing changes.. I think I have some kind of extra CSS code that is holding the icons left?
Hi @Lucas1200 ,
We have checked the website and understood that the code doesn’t update properly.
Please replace or add the new CSS code. So the text and icons should be displayed in the center.
Code:-
.ss-payment-list {
width: 100% !important;
max-width: 44rem !important;
}
I hope this helps! If it does, please like it and mark it as a solution!
If you need further assistance, feel free to reach out!
Regards,
Sweans
Still doesn’t change anything ![]()