Center Heading Text On Collection List On Spotlight Theme

Hi Everyone.

Anyone know how I can center the heading text on collection list section on the spotlight theme? My website is www.PPFMERCH.com

Thank you in advance :slightly_smiling_face:

1 Like
  • Here is the solution for you @Justin34
  • Please follow these steps:

  • Then find the base.css file.
  • Then add the following code at the end of the file and press β€˜Save’ to save it.
.title-wrapper--no-top-margin {
    justify-content: center !important;
}
  • Here is the result you will achieve:

  • Please press β€˜Like’ and mark it as β€˜Solution’ if you find it helpful. Thank you.
1 Like

Hi @Justin34 ,

Step 1: Go to Shopify Admin β†’ Online Store ->Theme β†’ Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above tag:


Here is result:

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

Worked perfectly :slightly_smiling_face: Thank you so much!! Really appreciate it.

1 Like

No problem. Have a good day.

Quick question. I noticed that its centered on the desktop version of the site but not our mobile version. Is there a way to make it centered on mobile too? Thank you.

1 Like

You can try this code @Justin34

.title-wrapper--no-top-margin {
    justify-content: center !important;
    text-align: center !important;
}

1 Like

@Justin34 Please try replacing it with the new code I provided.

  • Please press β€˜Like’ and mark it as β€˜Solution’ if you find it helpful. Thank you.

PERFECT!! Thank you so much! You are the best :grinning_face_with_smiling_eyes:

1 Like

Glad to have been able to help you!!!

Hello - I’ve recently updated my theme to the 15.2.0 and can’t seem to make this solution work. Is it still relevant? I’ve tried both solutions proposed in this thread. Thanks!