• Resolved jisterain

    (@jisterain)


    Hi,

    How can I remove featured images from displaying inside individual posts, while still displaying on the homepage?

    I tried to play around with it but I couldn’t get it to work.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @ jisterain

    If u do not want to display the image inside the individual posts then just go to single.php and comment the code where u can find post_thumbnail .

    Thanks

    Thread Starter jisterain

    (@jisterain)

    Hi tsuzan,

    Here is what I see:

    <?php if ( has_post_thumbnail() ) : ?>
    
    					<div class="post-image">
    
    						<a title="<?php the_title_attribute(); ?>" href="<?php the_permalink(); ?>">	
    
    							<?php the_post_thumbnail('post-image'); ?>
    
    						</a>
    
    						<?php if ( !empty(get_post(get_post_thumbnail_id())->post_excerpt) ) : ?>
    
    							<p class="post-image-caption"><span class="fa fw fa-camera"></span><?php echo get_post(get_post_thumbnail_id())->post_excerpt; ?></p>
    
    						<?php endif; ?>
    
    					</div> <!-- /post-image -->

    hi @ jisterain

    just put this comment symbol // before the_post_thumbnail as below
    <?php //the_post_thumbnail(‘post-image’); ?>

    hope this works

    Thanks

    Thread Starter jisterain

    (@jisterain)

    Perfect! Thanks a lot for your help.

    hi @ jisterain

    Thanks for your appreciation

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove featured images from post’ is closed to new replies.