[Resolved] Hide Post Image

Home Forums Support [Resolved] Hide Post Image

Home Forums Support Hide Post Image

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #261511
    Sebastian

    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

    #261636
    Tom
    Lead Developer
    Lead Developer

    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' );
    }
    #261686
    Sebastian

    many thanks for the quick response.
    Unfortunately, it does not work ๐Ÿ™ The pictures are still visible in the source code.

    #261750
    Tom
    Lead Developer
    Lead Developer

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

    #261779
    Sebastian

    That works great, many thanks

    #261875
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

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