• Resolved nivajean

    (@nivajean)


    How do I remove the featured image from being inside the actual post but keep it as a featured image for the rest of the site?

    I’ve read so many how to’s about removing a specific code from the single.php but mine looks different to the others.

    Here is what mine says:

    <?php get_header(); ?>
    
      <section class="section" role="main">
    
        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
          <?php get_template_part( 'content', get_post_format() ); ?>
    
        <?php endwhile; else: get_template_part( 'content', 'none' ); endif; ?>
    
      </section><!-- .section -->
    
      <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Can someone please help?

Viewing 3 replies - 1 through 3 (of 3 total)
  • What theme are you using? Where did you download it from?

    Thread Starter nivajean

    (@nivajean)

    I figured it out! If you’re interested, I want to content-list.php in the theme editor and just removed this code:

    <?php if ( has_post_thumbnail() ) { ?>
    <?php $url = wp_get_attachment_url( get_post_thumbnail_id( $post->ID ) ); ?>
    <?php the_post_thumbnail( ‘post_thumb’, array( ‘class’=>’alignleft’ ) ); ?>
    <?php } ?>

    Hope this helps someone! I was getting desperate!

    Thread Starter nivajean

    (@nivajean)

    @esmi I am using the Adelle theme but it’s all good now ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I remove the featured image from the actual post?’ is closed to new replies.