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

dlapoin41
Tourist
14 0 2

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

Replies 16 (16)
Vikas_Chovatiya
Shopify Partner
418 90 124

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)
Vikas_Chovatiya
Shopify Partner
418 90 124

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)
dlapoin41
Tourist
14 0 2

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

Vikas_Chovatiya
Shopify Partner
418 90 124

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)
dlapoin41
Tourist
14 0 2

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

Vikas_Chovatiya
Shopify Partner
418 90 124

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)
dlapoin41
Tourist
14 0 2
Dezastar
Tourist
3 0 2

Thank you @Vikas_Chovatiya 

This also helped me so much too. Ive been looking how to fix it for ages now.

Cheers