Remove featured post image inside single post page

How can I remove blog post feature image inside the blog single post page from the top, in the “Intution” WordPress theme ?

Related posts

2 comments

  1. In the element-blog.php file you’ll find the code you want to remove, from the line 24 to the line 29.

    elseif(has_post_thumbnail()): ?>
    <div class="post-image">
        <a href="<?php the_permalink(); ?>" title="<?php printf(esc_attr__('Go to %s', 'cpotheme'), the_title_attribute('echo=0')); ?>" rel="bookmark">
            <?php the_post_thumbnail('800'); ?>
        </a>
    </div>
    

    It tests if there any image to show and, if it the case, displays it. Be sure to not remove the line with the endif which is right after!

    edit: Removing this piece of code will remove the featured image everywhere. If you only want to hide it on the “single post” pages, you can just change the test in the condition. From:

    elseif(has_post_thumbnail()): ?>
    

    change to:

    elseif(has_post_thumbnail() && !is_single()): ?>
    

    in the line 24. This new condition tests whether we are on a single post page or not: if it is the case we don’t display anything, otherwise we display the featured image.

  2. Try This.

    element-blog.php

    <?php the_post_thumbnail('800'); ?>  //line 27
    

    which you can remove.

Comments are closed.