• Resolved naturalvibrance

    (@naturalvibrance)


    Hi, I have been struggling with this all day. The theme I am using (SuevaFree).
    I want the featured image of my posts to appear on the home screen, but not in the actual post at the top. I have gone to the single.php file and it links to another file with this piece of code:

    <?php do_action(‘suevafree_postformat’); ?>

    So I initially find the file (standard.php), but when I remove this code in the file:

    <div class=”pin-container”>
    <?php the_post_thumbnail(‘blog’); ?> </div>

    Then it works but also removes the featured image from the home screen. Anyway I can fix this so it only removes it from the single post screen?
    Here is the full code from the standard.php file where I found the above code.

    <?php

    global $suevafree_wip_setting;

    if ( has_post_thumbnail() ) : ?>

    <div class=”pin-container”>

    <?php the_post_thumbnail(‘blog’); ?>

    </div>

    <?php

    endif;

    ?>

    <article class=”article”>

    <h1 class=”title”>ID); ?>”><?php the_title(); ?></h1>

    <div class=”line”>

    <div class=”entry-info <?php if (suevafree_setting(‘suevafree_view_comments’) == “on” ) echo “viewcomments”; ?>”>

    <span class=”entry-date”><i class=”icon-time” ></i><?php echo get_the_date(); ?></span>

    <?php if (suevafree_setting(‘suevafree_view_comments’) == “on” ): ?>

    <span class=”entry-comments”><i class=”icon-comments-alt” ></i><?php echo comments_number( ‘ID).’#respond”>’.__( “No comments”,”wip”).’‘, ‘ID).’#comments”>1 ‘.__( “comment”,”wip”).’‘, ‘ID).’#comments”>% ‘.__( “comments”,”wip”).’‘ ); ?></span>

    <?php endif; ?>

    <span class=”entry-standard”><i class=”icon-edit”></i>Article</span>

    </div>

    </div>

    <?php

    if ((is_home()) || (is_category()) || (is_page()) || (is_search()) ) {

    if ( (!suevafree_setting(‘suevafree_view_readmore’)) || (suevafree_setting(‘suevafree_view_readmore’) == “on” ) ) {

    suevafree_excerpt();

    } else if (suevafree_setting(‘suevafree_view_readmore’) == “off” ) {

    the_content();

    }

    } else {

    the_content();

    echo “<div class=’clear’></div>”;

    wp_link_pages();

    echo ‘<p class=”categories”>‘. __( “Categories: “,”wip”).’‘; the_category(‘, ‘); echo ‘</p>’;

    the_tags( ‘<footer class=”line”><div class=”entry-info”><span class=”tags”>Tags: ‘, ‘, ‘, ‘</span></div></footer>’ );

    if (suevafree_setting(‘suevafree_view_comments’) == “on” ) :

    comments_template();

    endif;

    }

    ?>

    </article>

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove featured image from post’ is closed to new replies.