Change Rich Text section to align center instead of left

Solved
Highlighted
New Member
2 0 0

Hello everyone,

 

I have added a new Rich Text Section to my store's Blog Template, but rather than center align as with all other Rich Text Sections on the site, it is aligning left.

 

https://billytannery.co.uk/blogs/press

 

Is there a  way to ensure that this always center aligns? This is a custom theme built for us but I'd rather not engage the agency to make the amends if I can help it!


Many Thanks,


Jack

0 Likes
Highlighted
Shopify Expert
3474 543 819

This is an accepted solution.

Hi,

Follow this:

1. Go to Online Store->Theme->Edit code
2. Asset->theme.scss->paste bellow code in bottom of file

If you have not theme.scss then add in any css file that added in theme.liquid

.blog-archive #shopify-section-rich-text{width: 100%;}

Let me know if you need help

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Highlighted
New Member
8 0 0

I've tried this and many other solutions. The rich text is not aligning to the middle of the picture but keeps aligning to the full page

0 Likes
Highlighted
Shopify Expert
3474 543 819

Send your page url where you have section. 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Highlighted
New Member
8 0 0
https://an-extra-boost-of.myshopify.com/

the section in the red box on the home page.
[image: image.png]

0 Likes
Highlighted
Shopify Expert
3474 543 819

You mean this section?

 

 

section.png

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Highlighted
New Member
8 0 0

yes I was able to center the title but unable to center the text in the rich text box

0 Likes
Highlighted
New Member
8 0 0

Untitled.jpg

I'm trying to do something like this

0 Likes
Highlighted
Shopify Expert
3474 543 819

Add this css in asset->theme.scss file at bottom:

#shopify-section-1584635345441 .rich-text__text--large{text-align: center;}
Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
1 Like
Highlighted
New Member
8 0 0

that did work but I wanted it to be more narrow. I feel like its to wide.

0 Likes