• Hello, how to show or disable featured image? Plugin: Hide Featured Image not works. Please help me

Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Which theme are you using? Can you show us the page with the feature image?

    Thread Starter szukista

    (@szukista)

    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.

    Thread Starter szukista

    (@szukista)

    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?

    Thread Starter szukista

    (@szukista)

    I want to choose which post will have featured image.

    lilolbear

    (@lilolbear)

    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.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to enable disable featured image’ is closed to new replies.