We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to centre the h2 of the sections on the homepage

Solved

How to centre the h2 of the sections on the homepage

lucasgbona
Excursionist
15 1 3

Hi there,

 

How can i centre the h2 on the sections of the homepage?
I have manage to centre the title for one section but not for the rest. Also the h1 of the pages are centred.

So my issue is the h2 of the sections on the homepage. 

Screen Shot 2024-07-12 at 15.30.05.png

 

 

https://statuecorp.com/

Accepted Solutions (2)

Made4uo-Ribe
Shopify Partner
10211 2427 3079

This is an accepted solution.

Hi @lucasgbona 

check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

.title-wrapper-with-link {
    justify-content: center;
}

 

  • And save. 
  • Result:
    Made4uoRibe_0-1720795472989.png

     

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.

View solution in original post

lucasgbona
Excursionist
15 1 3

This is an accepted solution.

Hi there, 

 

I placed your code at the bottom of the assets > section-collection-list  code and it worked.
I am using the Dawn theme. 

Thank you!

View solution in original post

Replies 2 (2)

Made4uo-Ribe
Shopify Partner
10211 2427 3079

This is an accepted solution.

Hi @lucasgbona 

check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

.title-wrapper-with-link {
    justify-content: center;
}

 

  • And save. 
  • Result:
    Made4uoRibe_0-1720795472989.png

     

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.
lucasgbona
Excursionist
15 1 3

This is an accepted solution.

Hi there, 

 

I placed your code at the bottom of the assets > section-collection-list  code and it worked.
I am using the Dawn theme. 

Thank you!