Remove feature image in post view

Photo, amazing way to showcase your architecture, photography or artistic projects | Support forum.
GK User
Tue Jul 26, 2016 4:09 pm
Hello, i want to display in post view a different feature image so i install a plugin for multiple post images.
This works just fine. But how can i remove the first feature image from my post view only.

Thanks
User avatar
Fresh Boarder

Joshua M
Wed Jul 27, 2016 8:15 am
Hello,

Could you please provide me with a URL to your page with these post images, either here or via PM (click the “Private Message” text underneath my avatar) so that I may analyze it?
User avatar
Moderator

GK User
Wed Jul 27, 2016 8:30 am
Hi, the website url is http://5.9.65.247/~polizoidis/?p=93&lang=el
The second image in this post is the first feature image that i want to remove from post view.
And here is the link for categorie view http://5.9.65.247/~polizoidis/?cat=12&lang=el.
Thanks
User avatar
Fresh Boarder

Joshua M
Thu Jul 28, 2016 8:08 am
Hi,

Try to remove the following fragment from your Photo/content-header.php file:
Code: Select all
<header class="entry-header<?php if ( '' == get_the_post_thumbnail()) : ?> no-image<?php endif; ?>"  <?php if ( has_post_thumbnail()) : ?> style="background-image: url('<?php echo $image_url ?>');"<?php endif; ?>>
    <?php if ( has_post_thumbnail() && !post_password_required() ) : ?>
    <?php do_action('photo_before_post_image'); ?>
        <div class="entry-thumbnail">
            <?php if(is_single() || is_page()) : ?>
                <?php echo gk_post_thumbnail_caption(); ?>
            <?php endif; ?>
        </div>
        <?php do_action('photo_after_post_image'); ?>
    <?php endif; ?>

    <?php if(is_sticky()) : ?>
        <sup><i class="gk-icon-star"></i></sup>
    <?php endif; ?>
</header>


It's recommended to use a child theme for this kind of modifications.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.