Shop Categories

X

Feature Images (has-post-thumbnail)

Home Forums Agama Pro Feature Images (has-post-thumbnail)

Topic Resolution: Resolved
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #28914
    Pavel Shabalin
    Participant

    Hello!
    How to prevent the Feature Images (has-post-thumbnail) function from displaying when viewing full page?

    #28924
    Lori McAlister
    Participant

    Yes, please. HELP. I have the same question with no response.

    #28925
    Pavel Shabalin
    Participant

    So far, I have found such a quick solution: in the template, the file content-page.php find the

    <?PHP strings if( has_post_thumbnail() ): ?> 
     <header class="entry-header">
     <?php if (the_post_thumbnail() ); ?>
     </header>
     <?php endif; ?>

    Replace with this code

    <? php if (has_post_thumbnail ()):? > 
     <header class="entry-header">
     <?php if ( !is_single() || the_post_thumbnail() ); ?>
     </header>
     <?php endif; ?>

    But I would also like to clarify with the author of the template, is this option possible or will you need to edit something else?

    #28926
    Lori McAlister
    Participant

    agreed. I’d prefer not to change the PHP if possible just in case it reverts to the original when there is a theme update. Hopefully, we will both get a response soon.

    #28932
    Lori McAlister
    Participant

    I figured it out. I wish Theme Vision would answer their “Support” questions directly.

    I went to the WordPress support page https://wordpress.org/support/topic and found the same question seven months ago to Agama. Here’s how they answered it then (see cut and paste answer below). I tried it, and it worked on a draft page I put together. I hope it works for you too.
    ***********
    Try to insert the following code into Customizing->General->Additional CSS:

    .page .entry-header img {
    display: none!important;
    }

    #28933
    Pavel Shabalin
    Participant

    Great, great job. This really works and is a more convenient option for this purpose. Thanks a lot

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.