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?
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
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
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
Cool, thanks Rikard.