How to center rich text in minimal theme?

Solved
Highlighted
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
Highlighted
Shopify Partner
1151 232 299

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.
My Email: guleriathakur43@gmail.com
Skype: navrocks1
If helpful then please Like and Accept Solution.
If you are happy and want to donate small Click here (Its my paypal)
Highlighted
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;
}

Highlighted
Shopify Partner
1151 232 299

Please share store url.

Want to modify or custom changes on store hire me.
My Email: guleriathakur43@gmail.com
Skype: navrocks1
If helpful then please Like and Accept Solution.
If you are happy and want to donate small Click here (Its my paypal)
0 Likes
Highlighted
Tourist
3 0 1

smokyfragrance.com

0 Likes
Highlighted
Shopify Partner
1151 232 299

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.
My Email: guleriathakur43@gmail.com
Skype: navrocks1
If helpful then please Like and Accept Solution.
If you are happy and want to donate small Click here (Its my paypal)
Highlighted
Tourist
3 0 1

Fantastic! It worked, thank you!

0 Likes
Highlighted
Shopify Partner
1151 232 299

sounds good, please like and accept solution.
thanks

Want to modify or custom changes on store hire me.
My Email: guleriathakur43@gmail.com
Skype: navrocks1
If helpful then please Like and Accept Solution.
If you are happy and want to donate small Click here (Its my paypal)
0 Likes
Highlighted
New Member
1 0 0

Hi,

 

great solution, thanks :)

0 Likes
Highlighted
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