Disabling Featured Image Within a Post

Marketplace Forums Themes My White Disabling Featured Image Within a Post

This topic contains 4 replies, has 3 voices, and was last updated by  CarolynGross 1 year, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1723

    I don’t want the featured image to be used within the blog post, only next to the excerpt (eg on the front page or search results). How do I remove it from showing in the actual post itself?

    It throws off the alignment of the post when it’s within the post. For example:
    http://blog.thedentalcard.com/2013/07/brushing-your-teeth-during-ramadan/

    #1724

    mythemes
    Member

    so, you want remove featured image from:

    https://dl.dropboxusercontent.com/u/63722484/my-white/1.png ( marked with red border )

    or

    https://dl.dropboxusercontent.com/u/63722484/my-white/2.png ( marked with red bordder )

    #1731

    I want to remove the Featured Image like in “2.png”

    Thanks!

    #1732

    mythemes
    Member

    un zip your theme ( pack my-white.zip )

    open file single.php

    on line: 21 – 30

    you have something like this :

    <?php if( has_post_thumbnail() ){ ?>
    <div class="thumbnail">
    <?php echo get_the_post_thumbnail( $post -> ID , array( $myThemes_layout -> width , 999 ) , esc_attr( $post -> post_title ) ); ?>
    <?php $caption = get_post( get_post_thumbnail_id() ) -> post_excerpt; ?>
    <?php if( !empty( $caption ) ) { ?>
    <footer><?php echo $caption; ?></footer>
    <?php } ?>
    </div>
    <?php
    }
    

    replace this code with this <?php

    #9050

    CarolynGross
    Member

    It looks amazing , Why do you want to remove it?

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

[email protected] [email protected]