Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: How to enable disable featured image

Discussion in 'Misc WordPress Requests' started by lilolbear, Nov 16, 2017.

  1. lilolbear

    Guest

    Reply To: How to enable disable featured image, by 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.

    Reply To: How to enable disable featured image
     
    #1

Share This Page

Web Hosting