Fix spacing in Rich Text

Fix spacing in Rich Text

ellacoker
Shopify Partner
224 0 34

Hi there,

I would like to fix my spacing in my Rich Text - If i space down where you enter the text, it doesn't seem to work. 

URL: https://www.samiyaskincare.com.au/pages/become-an-affiliate

Password: ellacoker

Screenshot 2025-02-08 at 14.12.35.png

Replies 5 (5)

DaisyVo
Shopify Partner
4338 482 568

Hi @ellacoker 

 

I hope you are well. You can follow our instructions below:
1/ Shopify admin > Online store > Edit code: https://prnt.sc/M4p-gua99Uf4
2/ Search for "theme.liquid" file: https://prnt.sc/b6xveIKe-Rh2
3/ Open the file and search for </head> tag and add the following code above </head> tag: https://prnt.sc/KWtKYyZkDtYJ

 

Here is the code for Step 3:

 

 

{% style %}
.rich-text__blocks {
    line-height: 40px !important;
}
{% endstyle %}

 

 

DaisyVo_0-1738989348325.png

 

Please let me know if it works. Thank you!

Best,
Daisy - Avada Support Team.

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
ellacoker
Shopify Partner
224 0 34

Hi Daisy, I am happy with the line height - wanted to remove the spacing beneath the H2 Headers, not the body text.

Please see screenshot.

Screenshot 2025-02-08 at 14.40.22.png

devcoders
Shopify Partner
1160 138 330

Hello @ellacoker 

Go to Online Store, then Theme, and select Edit Code.
Search for assets/base.css Add the provided code at the end of the file.

 

.rich-text__blocks * h2 {
margin: 10px;
}

 

devcoders_0-1738991146918.png

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
Ahmad31
Shopify Partner
224 21 38

Hi @ellacoker you want like this:

Ahmad31_0-1739005862039.png

 

  • Go to your Shopify Admin Dashboard.
  • Navigate to Online Store → Themes.
  • Click "Actions" (three dots) next to your active theme.
  • Select "Edit code".
  • Open the relevant CSS file (usually theme.css.liquid or base.css).

  • Scroll to the bottom of the file.

  • Add this code:

 

 

.rich-text__blocks h2 {
  margin-bottom: 0px !important;
}

 

 

Love my work? Buy Me A Coffee
Hire Me: Email me Or Chat on Whatsapp
If you found my solution helpful, please like and accept it. Your support is greatly appreciated!

LizHoang
Shopify Partner
1251 159 196

Hi Ellacoker

- You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file

 

h2 {
    margin-bottom: 0 !important;
}

 

Result: 

LizHoang_0-1739014587567.png

 

Best,

Liz

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program