Forums

How do I stop the featured image showing in post as well (15 posts)

  1. fourjandals
    Member
    Posted 8 months ago #

    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

  2. keesiemeijer
    moderator
    Posted 8 months ago #

    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 {  ?>
    
    				<? } ?>
  3. fourjandals
    Member
    Posted 8 months ago #

    Thanks,

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

    Anyone have an idea?

  4. GreenBaron
    Member
    Posted 7 months ago #

    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

  5. russelray
    Member
    Posted 4 months ago #

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

  6. Khalid Al-Aydeross
    Member
    Posted 3 months ago #

    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.

  7. 808fuse
    Member
    Posted 3 months ago #

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

  8. Khalid Al-Aydeross
    Member
    Posted 3 months ago #

    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.

  9. 808fuse
    Member
    Posted 3 months ago #

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

  10. 808fuse
    Member
    Posted 3 months ago #

    Can anybody else help?

  11. russelray
    Member
    Posted 3 months ago #

    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?

  12. Khalid Al-Aydeross
    Member
    Posted 3 months ago #

    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.

  13. namarose
    Member
    Posted 2 months ago #

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

  14. wrestlezoneuk
    Member
    Posted 2 months ago #

    <?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

  15. j-elfshafei
    Member
    Posted 1 month ago #

    @Khalid Al-Aydeross thanks much! Removing that code from the single.php file worked perfectly! :)

Reply

You must log in to post.

About this Topic