How I center the rich text on the homepage in the Icon theme?

Highlighted
Tourist
8 0 1

Hello! 

I'm looking to center the rich text on the homepage of my Shopify page (it is currently left aligned). It is built under the Icon theme and there is no button in the customize section to center it. I understand this will require some coding. 

Thanks! 

Danielle

0 Likes
Highlighted
Trailblazer
265 68 75

Hi @dlapoin41 

Thanks Welcome to the Shopify community!
Please share your site URL,
So I will check and provide a solution here.

If helpful then please Like and Accept Solution.
-Want to modify or custom changes on store Hire me.
- Feel free to contact me on vikaschovatiya02@gmail.com regarding any help
If you are happy and want to donate small Click here (Its my paypal)
0 Likes
Highlighted
Tourist
8 0 1
Highlighted
Trailblazer
265 68 75

Hi @dlapoin41 

Thanks for the share URL.
1. Go to Online Store->Themes->Edit code
2. Asset->/theme.scss.liquid->paste below code at the bottom of the file.

.index .rte {
    text-align: center;
}
If helpful then please Like and Accept Solution.
-Want to modify or custom changes on store Hire me.
- Feel free to contact me on vikaschovatiya02@gmail.com regarding any help
If you are happy and want to donate small Click here (Its my paypal)
0 Likes
Highlighted
Tourist
8 0 1

hi! thank you for the suggestion. under assets, I only have theme.js.liquid. is there where i paste the code in? 

0 Likes
Highlighted
Trailblazer
265 68 75

HI @dlapoin41 

no, you can paste code in the CSS file

If helpful then please Like and Accept Solution.
-Want to modify or custom changes on store Hire me.
- Feel free to contact me on vikaschovatiya02@gmail.com regarding any help
If you are happy and want to donate small Click here (Its my paypal)
0 Likes
Highlighted
Tourist
8 0 1

i dont have a theme.scss file though. i only have these. please see the attached screenshots. Screen Shot 2020-09-14 at 10.18.21 PM.pngScreen Shot 2020-09-14 at 10.18.37 PM.png

0 Likes
Highlighted
Trailblazer
265 68 75

Hi @dlapoin41 

sorry for the confusion, find the stylesheet.css file and paste code

If helpful then please Like and Accept Solution.
-Want to modify or custom changes on store Hire me.
- Feel free to contact me on vikaschovatiya02@gmail.com regarding any help
If you are happy and want to donate small Click here (Its my paypal)
0 Likes
Highlighted
Tourist
8 0 1

thank you! 

0 Likes