Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Which theme are you using? Can you show us the page with the feature image?
I use https://pl.wordpress.org/themes/shale/ but on other not working too.
my page: http://www.obczajpierwszy.pl
I need option show or disable featured image
-
This reply was modified 7 years, 1 month ago by szukista.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
In the “Additional CSS” part of the dashboard add this:
.wp-post-image {
display: none;
}
To enable it again, remove that code.
This will only work for all featured images.
I know it but i need for example in first post I need featured image but in second no. I want to choose which post has hidden featured image. Can do that?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Is there a pattern to which post you want to target or is it completely random?
I want to choose which post will have featured image.
It appears that the CSS tag wp-post-image is not getting on to featured images any longer. If you are using the Hide Featured Image plug-in, you can edit the index.php and change the style the gets added to the page to the following:
if( $hide ){ ?>
<style>
article.has-post-thumbnail div.et_post_meta_wrapper img{ display: none !important; }
</style><?php
}
I’m looking for a more elegant solution to this, but this one will get you through.
-
This reply was modified 7 years ago by lilolbear.
-
This reply was modified 7 years ago by lilolbear.