- This topic has 10 replies, 2 voices, and was last updated 4 years ago by
Tom.
-
AuthorPosts
-
January 25, 2017 at 12:29 am #268054
Dominic
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:
January 25, 2017 at 12:31 am #268058Tom
Lead DeveloperLead DeveloperInside the WP Show Posts options you can uncheck the “Images” checkbox in the Images section.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 25, 2017 at 12:34 am #268060Dominic
Well… this would be to easy – it doesn’t work.
Yes, I cleared the autoptimize-cache.
January 25, 2017 at 12:36 am #268064Tom
Lead DeveloperLead DeveloperThat 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; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 25, 2017 at 12:41 am #268074Dominic
Damn, sorry, wrong screenshot. Yes, the pictures are inside my content, so I had to add the CSS snippet.
Thank you so much! π
January 25, 2017 at 12:51 am #268086Tom
Lead DeveloperLead DeveloperYou’re welcome π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentFebruary 4, 2017 at 10:37 am #274203Dominic
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!
February 4, 2017 at 10:38 am #274205Dominic
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? π
February 4, 2017 at 12:30 pm #274261Tom
Lead DeveloperLead DeveloperThis should do it:
.wp-show-posts-inner img, .wp-show-posts-inner .wp-caption { display: none; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentFebruary 5, 2017 at 8:05 am #274578Dominic
That works, thank you!
February 5, 2017 at 9:04 am #274621Tom
Lead DeveloperLead DeveloperYou’re welcome π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.