Support » Theme: Skylark » Hide the featured image in a post

  • Hi,

    I had a blog on wordpress.com for testing purposes (http://letoilefeline.wordpress.com/2014/07/02/groscalin/), and everything went well with the Skylark theme.

    But when I switched to a self-hosted site with a proper WordPress installation (http://letoilefeline.fr/?p=596), blog posts changed: there is now a big and cropped featured image at the top of all posts. I can’t hide it. I read on other threads (http://wordpress.org/support/topic/how-do-i-stop-the-featured-image-showing-in-post-as-well) that you can delete a piece of code in single.php but all single.php contains is this :

    <?php
    get_header(); ?>
    		<div id="primary" class="site-content">
    			<div id="content" role="main">
    
    			<?php while ( have_posts() ) : the_post(); ?>
    				<?php get_template_part( 'content', 'single' ); ?>
    				<?php skylark_content_nav( 'nav-below' ); ?>
    				<?php
    					if ( comments_open() || '0' != get_comments_number() )
    						comments_template( '', true );
    				?>
    			<?php endwhile; // end of the loop. ?>
    			</div><!-- #content -->
    		</div><!-- #primary .site-content -->
    <?php if ( 'image' != get_post_format() && 'gallery' != get_post_format() && 'video' != get_post_format() )
    	get_sidebar();
    ?>
    <?php get_footer(); ?>

    I don’t know what to do.

    Any idea?

Viewing 1 replies (of 1 total)
  • Phew!

    After 2 days, finally found it: it was in content-single.php. I added a “//” juste before “the_post_thumbnail” to prevent the displaying of thumbnail image in the second part of this piece of code :

    <?php if ( 'image' != get_post_format() && 'gallery' != get_post_format() && 'video' != get_post_format() ) : ?>
    
    			<div class="entry-thumbnail">
    				<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'skylark' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_post_thumbnail( 'skylark-single', array( 'class' => 'skylark-blog-thumbnail', 'alt' => get_the_title(), 'title' => get_the_title() ) ); ?></a>
    			</div>
    <?php else : ?>
    <div class="entry-thumbnail">
    				<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'skylark' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php //the_post_thumbnail( 'skylark-single-full', array( 'class' => 'skylark-blog-thumbnail', 'alt' => get_the_title(), 'title' => get_the_title() ) ); ?></a>
    			</div>
    <?php endif; ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Hide the featured image in a post’ is closed to new replies.