Skylark theme: 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 /** * The Template for displaying all single posts. * * @package Skylark * @since Skylark 1.6 */ 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 are open or we have at least one comment, load up the comment template 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?
The blog I need help with is: (visible only to logged in users)
-
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; ?> -
-
Hi there,
This is the WordPress.COM support forum. You need to post to the WordPress.ORG support forum for help with your site because it is not hosted by WordPress.COM.WordPress.COM and WordPress.ORG are completely separate and have different logins, features and run different versions of some themes with the same names http://support.wordpress.com/com-vs-org/
If you don’t have a username account at WordPress.ORG click http://wordpress.org/support/ and register one on the top right hand corner of the page that opens, so you can post to the support forums there and receive advice from WordPress.ORG bloggers.
- The topic ‘Skylark theme: hide the featured image in a post’ is closed to new replies.