How can I center links in an accordion grouping on Pipeline 6.4?

Topic summary

A user running Pipeline 6.4 wants to center accordion links on a specific page (Help > Size Chart) instead of having them left-aligned.

Initial attempts:

  • First CSS solution provided targeted mobile view only and didn’t resolve the issue
  • User clarified they need centering on one specific page, not site-wide

Working solution:
Add this CSS code above </body> in theme.liquid (Layout folder):

<style>
.accordion__wrapper button.accordion__title {
  text-align: center !important;
}
.accordion__wrapper .accordion__body {
  text-align: center !important;
  padding-right: 0 !important;
}
</style>

Status: Resolved. The code successfully centers both accordion titles and body content as shown in the reference image.

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

Hi!

I am trying to update to Pipeline 6.4 and was wondering if there is a way to center the links in an accordion grouping? I want it to look like the attached image. It is currently aligned to the left.

Preview link: https://4b8dayqa7de27d14-7752355.shopifypreview.com

@adr5

Please add code above in theme.liquid

layout >> theme.liquid

@media only screen and (max-width: 600px) { .sliderule__panel .sliderow .sliderow__title { justify-content: start!important; padding: 10px 45px!important; } }

after add the code,

I added the code, but nothing seemed to happen. I am trying to have the the links centered in the accordion on a specific page only.

I am working on an updated pipeline version, so if you go to the preview link and then go to help > size chart, you will see that the links are all to the left. I wanted to see if it could be centered instead.

Preview link: https://4b8dayqa7de27d14-7752355.shopifypreview.com

Sorry, for that

Please add this code above

I think you want to this layout.

Yes, that’s the one! What code do I need to add?

And still above in the theme.liquid correct?

1 Like

yes above

@adr5 are you added the code given by me?

@niraj_patel I did not see a code in the last post. Only to add a code and then the screenshot, but no code.

@adr5

oh, again sorry i forgot it

Please add the code above

.accordion__wrapper button.accordion__title { text-align: center!important; padding-right: 0!important; } .accordion__wrapper .accordion__body { text-align: center!important; }
1 Like

@niraj_patel thank you so much!

1 Like

my pleasure @adr5 :slightly_smiling_face:

Thankyou for reaching us