How do I center the Featured Collection title instead of having it aligned left?

I’m using the Whisper theme on my Shopify store, and I’d like to center the title of the Featured Collection section instead of having it aligned to the left (LTR). Could someone guide me on how to adjust this alignment?

Thanks!

URL - https://babyshield.online/?_cd=94beae279e7023d53a97f0511cb5372119a20e05583ba9f7af495b9b13730ced&_uid=87150788800

2 Likes

Hi @JonBoy18 ,

Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above tag:


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:

  • Here is the solution for you @JonBoy18
  • Please follow these steps:

  • Then find the theme.liquid file.
  • Then add the following code at the before tag and press ‘Save’ to save it.

  • Here is the result you will achieve:

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

Hello @JonBoy18

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

h2.title.inline-richtext.h1.scroll-trigger.animate--slide-in { text-align: center !important; }

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.