Add image borders on blog only (Minimal Theme)

Solved
Highlighted
Tourist
7 1 1

I am trying to add black borders to the images on my blog. I thought I could just use the "border" attribute in the html. It's showing the border when I'm editing the blog but it doesn't show when I publish.

I read another article that maybe I need this code? 

border: 2px solid; border-color: #000;

 

I'm not sure where to put it. I don't want borders on any images except on my blog. So do I put it somewhere in blog-template.liquid?

Thanks!

P.S. my blog is at https://www.ferretfanclub.com/blogs/ferret-facts-care-by-ferret-fan-club/ferret-colors 

0 Likes
Highlighted
Shopify Partner
2230 483 626

This is an accepted solution.

Hey @CeeGoo,

Please add the following code at the bottom of your assets/timber.scss.liquid OR theme.scss.liquid file.

.template-article .rte img {
       border: 2px solid #000;
}

 

Hope this works for you.

Thanks! 

If helpful then please Like and Accept Solution.
Do you need custom changes on store ? Hire me.
Feel free to Contact me on dmw.webartisan@gmail.com
Follow us on Instagram @dmw.webartisan
0 Likes
Highlighted
Tourist
7 1 1

Success. This worked brilliantly. Thank you so much, @dmwwebartisan 

1 Like