Site logo

Archived topic

Hide pictures from blog

10 replies · Started by Dominic on January 25, 2017

Viewing posts 1–11 of 11

Hi there,

I'm using WP Show Posts to display my latest blog articles on my homepage, see: https://dominicpratt.de/

Is it possible to hide the picture from the article on the homepage, without removing it from the article? Just to make clear, what I mean: I want to remove these pictures only from the homepage of my website:

Inside the WP Show Posts options you can uncheck the "Images" checkbox in the Images section.

Well... this would be to easy - it doesn't work.

Yes, I cleared the autoptimize-cache.

That doesn't look like the images section?

It might be inside your actual content, in which case you could do this:

.wp-show-posts-inner img {
    display: none;
}

Damn, sorry, wrong screenshot. Yes, the pictures are inside my content, so I had to add the CSS snippet.

Thank you so much! :)

You're welcome :)

Howdy Tom,

somehow that's not working anymore on one of my blog articles: https://dominicpratt.de/

The other articles (e.g. Tutorial: Bloonix mit Let’s Encrypt-Zertifikaten) are shown correct without picture... strange!

Huh, the problem seems to be the picture description. When I remove the description it's correctly removed from the homepage... any idead how to solve this also? :)

This should do it:

.wp-show-posts-inner img,
.wp-show-posts-inner .wp-caption {
    display: none;
}

That works, thank you!

You're welcome :)

This archived topic is closed to new replies.