How to Align and place these liquid section under the buy button?

Topic summary

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:

  • Multiple community members provided CSS snippets targeting .ss-payment-list and .ss-payment-text classes
  • Suggestions included adding code to theme.liquid or main-product.liquid files
  • Two styling options were offered: full-width left-aligned or centered with 60% width

Current Status:

  • The user prefers the centered style (Style 2) but reports the icons remain left-aligned while text responds to CSS changes
  • Latest CSS attempts using max-width: 44rem and !important flags still produce no visual changes
  • One responder confirmed the code “doesn’t update properly” after checking the live site

Issue remains unresolved - the payment icons continue aligning left despite multiple CSS interventions, suggesting possible conflicting styles or improper code implementation.

Summarized with AI on November 6. AI used: claude-sonnet-4-5-20250929.

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

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:

  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 :disappointed_face: