Re: How to center title on homepage for desktop and mobile

Solved

How to center title on homepage for desktop and mobile

Allen6224
Excursionist
43 0 12

Hi,

 

I'm trying to figure out how to center the title "Journey Perfect Sleep Chair" for ecommerce store on desktop and mobile. my website is www.liftchairheaven.com

 

See below for screenshot of homepage

Allen6224_0-1736200400124.png

 

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
11931 2340 2515

This is an accepted solution.

Hi @Allen6224 

You can do that by adding this code to Custom CSS of that section. 

h2 { text-align: center; }

Screenshot 2025-01-07 at 09.29.14.png

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

View solution in original post

Replies 5 (5)

Made4uo-Ribe
Shopify Partner
10211 2427 3081

Hi @Allen6224 

TRy this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.rich-text .rich-text__blocks h2.h1 {
    text-align: center !important;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1736201470145.png

     

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

DaisyVo
Shopify Partner
4460 499 594

Hi @Allen6224 

 

I hope you are well. You can follow our instructions below:


1/ Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
2/ From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/iDxwa8zBQ4Z-
3/ Copy the code below and paste it there

 

Here is the code for Step 3:

 

 

.rich-text__blocks > h2 {
    text-align: center !important;
}

 

 

image (37).png


Please let me know if it works. Thank you!

 

Best,
Daisy - Avada Support Team.

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

Dan-From-Ryviu
Shopify Partner
11931 2340 2515

This is an accepted solution.

Hi @Allen6224 

You can do that by adding this code to Custom CSS of that section. 

h2 { text-align: center; }

Screenshot 2025-01-07 at 09.29.14.png

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

Allen6224
Excursionist
43 0 12

Thanks that worked.

Dan-From-Ryviu
Shopify Partner
11931 2340 2515

Very welcome! 

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.