Support » Themes and Templates » [Theme: Bloggy] Remove thumbnail from Home page & top of post

  • Resolved LifeWithMunchers

    (@lifewithmunchers)


    I only want thumbnails for be displayed on my category pages (like this), but I can’t seem to do this without it also showing on the home page or at the top of the post itself.

    I have tried to remove the_post_thumbnail from my themes content.php file, but this removes it from all 3 locations. I have also done the same in single.php, which has no effect at all.

    Any help would be appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • UPDATE:
    Almost there. I replaced the following in content.php:

    <div class=”entry-details”>
    <?php if ( has_post_thumbnail() ): ?>
    “>
    <?php the_post_thumbnail(‘thumbnail’); ?>

    <?php endif; ?>
    </div>

    With

    <div class=”entry-details”>
    <?php
    if(!is_single()){
    if ( has_post_thumbnail()) { the_post_thumbnail(‘thumbnail’);}
    }
    ?>
    </div>

    What do I need to add to remove it from the home page aswell?

    FIGURED IT OUT

    <div class=”entry-details”>
    <?php
    if( is_category()){
    if ( has_post_thumbnail()) { the_post_thumbnail(‘thumbnail’);}
    }
    ?>
    </div>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Theme: Bloggy] Remove thumbnail from Home page & top of post’ is closed to new replies.