Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2811

    Hello !

    Could we hide the preview image only in a particular single post ?

    capturehsg.jpg

    Uploaded with ImageShack.us

    #39399

    Hey,

    There are a couple of ways to do this, the first and most obvious is to not add an image to the post.

    Assuming you do want to add a featured image for use on other areas of the site, you need to modify this code:

    <?php
    if($preview_image)
    {
    echo '<div class="entry-previewimage rounded preloading_background">';
    echo $preview_image;
    echo '</div>';
    }

    ?>

    in single.php, adding WordPress Conditional Tags around the code so it won’t show up on specific posts.

    James

    #39400

    Ok thanks, i’ll try that

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘hide picture preview’ is closed to new replies.