Site logo

Archived topic

Hide Post Image

5 replies · Started by Sebastian on January 7, 2017

Viewing posts 1–6 of 6

Hi Tom,

under "Customizing" -> "Blog" -> "Postimage", I have switched "Hide" on. The post-image is not displayed. But in the source code it is loaded (class = "post-image") and switched off only with "display: none".

What can I enter into the functions.php so that post-image content is completely removed from the blog list?

Thanks

Good point, just made that adjustment to the next version so it completely removes it.

For now, you can do this:

add_action( 'wp','tu_remove_post_image', 50 );
function tu_remove_post_image()
{
    remove_action( 'generate_after_entry_header', 'generate_blog_post_image' );
}

many thanks for the quick response.
Unfortunately, it does not work :( The pictures are still visible in the source code.

I just updated the code above, can you give it another try?

That works great, many thanks

You're welcome :)

This archived topic is closed to new replies.