Shopify themes, liquid, logos, and UX
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 ,
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>
<style>
.ss-payment-list {
justify-content: start !important;
}
.ss-payment-text {
text-align: left !important;
}
</style>
Or the below code:
<style>
#ss-payment-list-template--19886100480346__ss_payment_icons_4y9ckC {
display: flex !important;
justify-content: start !important;
text-align: left !important;
}
</style>
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:
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your section file.
5. open "main-product.liquid"
6. Add the following code at the end of the file.
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:
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your section file.
5. open "main-product.liquid"
6. Add the following code at the end of the file.
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 😞
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024