Topic summary
A Shopify store owner needed help reducing vertical spacing between two titles in a Rich text section.
Solution provided:
- Navigate to Online Store > Themes > Assets folder
- Open the main CSS file (main.css, base.css, style.css, or theme.css)
- Add custom CSS code at the bottom targeting
.rich-text__text.center.blocks__textwithmargin-top: 0 !important;
Outcome:
The solution was successfully implemented and resolved the spacing issue. The thread includes before/after screenshots demonstrating the reduced spacing between titles.
1 Like
Hi @Lumify
Check this one.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
.rich-text__blocks.center .rich-text__text {
margin-top: 0 !important;
}
And Save.
Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
1 Like
Hi Made4uo-Ribe,
Many thanks, it did worked. ![]()
Have a great day!

