Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #164872

    Hi
    I set up a featured image on a page and automatically that featured image it shown on the top of my page. I don’t want that.
    It is possible to remove it from pages without removing the featured image itself (I use that image for a plugin)?

    #165016

    Hey scisterna!

    You can add this on your custom.css or Quick CSS to hide the featured image on pages:

    .page .page-thumb {
    display: none;
    }

    Regards,
    Ismael

    #165017

    I don’t want to do it in that way because Google will find that I’m hidding something and it could be penalized.
    It is possible to do it from the php?

    Regards

    #165028

    Hey!

    Edit includes > loop-page.php, find this code:

    $thumb = get_the_post_thumbnail(get_the_ID(), $avia_config['size']);
    
    				if($thumb) echo "<div class='page-thumb'>{$thumb}</div>";

    Remove it.,

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove featured images on pages’ is closed to new replies.