Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #426810

    I am combing through loop-index in order to comment out the_post_thumbnail() so that the featured image doesn’t render in single.php, but only as a thumbnail on the post grid view. However in this case it’s not quite as straightforward as with a more basic theme. Can you tell me what must be removed from loop-index (for my child theme) to avoid the featured image from rendering inside the post body?

    • This topic was modified 9 years, 8 months ago by Rogier.
    #427262

    Hey Rogier!

    The easiest option would be to hide the element with CSS, would that work for you? If not, please let us know and we’ll tell you what to remove.

    Best regards,
    Rikard

    #428025

    Hi Rikard,

    Thanks for your reply. Yes, I have the code
    .single-post .post-entry .big-preview{ display: none !important; } http://goo.gl/ZBS2eh
    but I am unsure whether this hides the image after rendering, or prevents it from rendering at all? I am just looking to minimize the page load.

    Rogier

    #428655

    Hi Rogier!

    I’m pretty sure that the image will not load at all if you hide it with CSS, if you want to make sure, just run the page in a testing tool to see what’s loading on the page. I like to use Pingdom: tools.pingdom.com/fpt/

    Best regards,
    Rikard

    • This reply was modified 9 years, 8 months ago by Rikard.
    #430306

    Cool, thanks Rikard.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Prevent featured image from rendering in single?’ is closed to new replies.