Disabling Featured Image Within a Post

Marketplace Forums Themes My White Disabling Featured Image Within a Post

This topic contains 3 replies, has 2 voices, and was last updated by  mythemes 6 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 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
    Keymaster

    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
    Keymaster

    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

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

You must be logged in to reply to this topic.

sniffen-fbg@mailxu.com favero_rafael@mailxu.com