How to center rich text in minimal theme?

Solved
genny1223
New Member
1 0 0

Does anyone know how to get the rich text section to be centered on the home page under the slideshow of the minimal theme? I've tried searching in the previous discussions, added "center" in code and etc. still not working.

Thank You

0 Likes
Guleria
Shopify Partner
1472 304 420

This is an accepted solution.

Hello 

.rich-text {
    text-align: center !important;
}
.rich-text .section-header {
    text-align: center !important;
}
Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1
If helpful then please Like and Accept Solution.
Prozy
Tourist
3 0 1

To center the text works for me, but not the Heading, I use the simple theme though.

 

I have put the code like this at the end of theme.scss.liquid

 

.rich-text p {
text-align: center;
}
.rich-text .section-header {
text-align: center !important;
}

Guleria
Shopify Partner
1472 304 420

Please share store url.

Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1
If helpful then please Like and Accept Solution.
0 Likes
Prozy
Tourist
3 0 1

smokyfragrance.com

0 Likes
Guleria
Shopify Partner
1472 304 420

Add this css to align rich-text heading to center 

.rich-text h2 {
    text-align: center;
}

 

And add this too, if you want to align feature product headings in homepage

.template-index .featured-products h2 {
    text-align: center;
}
Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1
If helpful then please Like and Accept Solution.
Prozy
Tourist
3 0 1

Fantastic! It worked, thank you!

0 Likes
Guleria
Shopify Partner
1472 304 420

sounds good, please like and accept solution.
thanks

Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1
If helpful then please Like and Accept Solution.
0 Likes
Amra
New Member
1 0 0

Hi,

 

great solution, thanks :)

0 Likes
ramalhop20
New Member
2 0 0

Hey everyone!

How can I center the Heading of rich text in my home page?

zielrio.com

Thanks in advance.

0 Likes