Solved

How to prevent image and text overlap in blog posts?

Michael185
Excursionist
14 3 1

Hi,

We've just had this issue pop up in both our about page and in the various blog pages. It doesn't show up on other pages of the website.

The text is overlapping with the images. I went into the blog pages and tried to add some padding but that didn't work and it's not a practical solution considering the issue is everywhere. I found someone who had a similar issue who removed some shadow in their CSS but I couldn't find that code on our website. 

The website is https://brutalcities.com/  and there's an example of the issue below. 

Would love a hand to find the issue, thanks! 


Michael185_0-1713275784716.png

 

Accepted Solution (1)

ThePrimeWeb
Shopify Partner
2093 600 468

This is an accepted solution.

Hey @Michael185,

 

Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.

 

<style>
.rte img {
    margin-bottom: 0 !important;
}
</style>

 

 

Screenshot is for reference only, the correct code to paste is the one shown above.

ThePrimeWeb_0-1713276398279.jpeg

 

Was I helpful?

Buy me a coffee

🙂

Need help with your store? contact@theprimeweb.com or check out the website
Check out our interview with Shopify!

View solution in original post

Replies 4 (4)

ThePrimeWeb
Shopify Partner
2093 600 468

This is an accepted solution.

Hey @Michael185,

 

Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.

 

<style>
.rte img {
    margin-bottom: 0 !important;
}
</style>

 

 

Screenshot is for reference only, the correct code to paste is the one shown above.

ThePrimeWeb_0-1713276398279.jpeg

 

Was I helpful?

Buy me a coffee

🙂

Need help with your store? contact@theprimeweb.com or check out the website
Check out our interview with Shopify!
Michael185
Excursionist
14 3 1

Hi! Thanks for sending that through, seems to have fixed the issue!

 

Made4uo-Ribe
Shopify Partner
5991 1444 1783

Hi @Michael185 

Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.rte.scroll-trigger.animate--slide-in img {
    margin-bottom: 20px;
}

 

And Save. 

Result:

Made4uoRibe_0-1713279634486.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


Michael185
Excursionist
14 3 1

Thanks a lot for the help! I'd fixed the issue with the other solution but will definitely keep this handy - not sure what prompted everything to lose the format in the first place. Cheers!