WordPress.org

Support

Support » How-To and Troubleshooting » How do I stop the featured image showing in post as well

How do I stop the featured image showing in post as well

  • fourjandals

    @fourjandals

    Hi there,

    I love the featured image but every time I set it, it ends up also in my blog before the first line as a small thumbnail. I don’t want it to show in each post. Only want it to show on the homepage for the slider etc.

    Any help would be appreciated.

    Regards,
    Cole
    http://www.fourjandals.com

Viewing 15 replies - 1 through 15 (of 16 total)
  • Moderator keesiemeijer

    @keesiemeijer

    Try removing this form post-entry.php:

    <?php if ( has_post_thumbnail() ) {  ?>
                        <div class="thumbnail-wrap">
    						<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo $thumbnail[0]; ?>" height="125" width="125" alt="<?php the_title(); ?>" class="thumbnail opacity-hover" /></a>
                        </div><!-- /thumbnail-wrap -->
    					<? } else {  ?>
    
    				<? } ?>

    fourjandals

    @fourjandals

    Thanks,

    This didn’t work though unfortunately. I deleted the code. Nothing happened so I put it back in.

    Anyone have an idea?

    To delete the featured image from the post I just opened the edit page and clicked “featured image” then clicked on the “remove featured image”. This might work for you. However this does not remove it from the blog page.

    Do you or anyone know how to remove the featured image from the blog page too?

    Thanks

    I’ve spent the last several days trying to remove the featured image from the blog post. It’s frustrating.

    Removing this code from my single post page (single.php) worked for me:

    <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { the_post_thumbnail(array( 200,200 ), array( 'class' => 'post_thumbnail' )); } ?>

    Featured images still appear on the front page, but no longer appear in posts.

    I’m having a similar problem. I can’t find the single.php, so I can’t remove the code.

    If you couldn’t find it in the theme editor, try accessing the file through your FTP manager. –Make sure you backup before updating anything.

    Uhh, I’m new to this, what’s the FTP manager?

    Can anybody else help?

    The FTP manager is how you upload files to your web site. Some of the CPanels have FTP managers, but you can also use free ones like SmartFTP or FileZilla.

    I think you would have had to have used some sort of FTP manager to upload the WordPress files to your web site. Do you remember how you did that?

    808fuse,

    If you didn’t want to use the FTP manager, you could always access your files through your main hosting’s Control Panel. Just go to the File Manager and look for Single.php. It should be in your current theme’s directory under (wp-content/themes). Download the file Single.php, make an extra copy of it (just in case), edit it to remove the code, and re-upload it, overriding the previous version on your site.

    Hope this helps.

    @khalid Al-Aydeross you did it!! That totally worked for me – I was having the same problem – thank yOUU!U!U!U!U!!

    <?php if ( has_post_thumbnail() ) {
    $mypostimage = the_post_thumbnail( 'large', array('class' => 'featsingle' , 'alt' => get_the_title() , 'title' => get_the_title() ));
    the_content(); } else { the_content(); } ?>

    Could someone please help me with this one, what exactly do i remove to get rid of featured images showing up in posts.

    thanks so much in advance

    @khalid Al-Aydeross thanks much! Removing that code from the single.php file worked perfectly! 🙂

    Hello, where’s that single.php file? I access throw my ftp client and as usual have the 3 main files, wp-admin, wp-content and wp-inclues as well as a bunch of other files (.php .html etc etc) where is that single.php file or it’s equivalent? this would be great!!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘How do I stop the featured image showing in post as well’ is closed to new replies.