Text in 'featured collection' mobile not centered

Solved

Text in 'featured collection' mobile not centered

visualess
Excursionist
42 0 11

Hi,

 

For some reason the heading text in featured collection isn't centre aligned on mobile only. Does anybody have a solution to fix?

 

TIA!

 

Website: curlybynature.com

password: visualess

Screenshot 2024-09-21 at 08.37.05.png

Accepted Solution (1)

Moeed
Shopify Partner
5323 1437 1723

This is an accepted solution.

Hey @visualess 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

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

RESULT:

Moeed_0-1726904769930.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 5 (5)

Moeed
Shopify Partner
5323 1437 1723

This is an accepted solution.

Hey @visualess 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

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

RESULT:

Moeed_0-1726904769930.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


visualess
Excursionist
42 0 11

You're amazing! thank you so much it worked perfectly

Moeed
Shopify Partner
5323 1437 1723

Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


Tech_Coding
Shopify Partner
287 72 64

Hello @visualess 

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 </body> on theme.liquid
<style>
@media screen and (max-width: 767px){
   .collection__title.title-wrapper {
      text-align: center !important;
   }
}
</style>

Tech_Coding_0-1726904845836.png

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

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.

Rahul_dhiman
Shopify Partner
536 109 109

Hello @visualess 

Go to online store ---------> themes --------------> actions ------> edit code------->base.css
at the end of the file and save.

.collection__title.title-wrapper {
    text-align: center !important;
}

 result
5.png

If this was helpful, hit the like button and accept the solution.
Thanks

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -rahul@prowebcoder.com - Skype: live:dhiman.639
Checkout Some Free Sections Here
Mobile:- +91 62390-46167