Hide featured image on all single page/post

Description

This lightweight plugin hides all featured images on pages and posts when they are viewed in their own tab. The posts are not modified — they still have a featured image if you selected one. The plugin only disables the theme’s ability to access the image when rendering the page. If your theme displays featured images in search results, Posts page, category lists, and so on, it still can do that. Social media platforms and search engines that look for an image to accompany the excerpt, can also still find the featured image URL in the post metadata.

There are no settings; the plugin just does the one thing.

The change applies to existing posts as well as anything you create after activation. You would need to edit any old posts that are adversely affected by this change. If you have a lot of old content, you might want to use a different plugin such as Conditionally display featured image on singular pages and posts, which by default only affects new posts.

TECHNICAL NOTE

Themes that find the featured image by looking up data in the database directly as opposed to calling get_the_post_thumbnail() or wp_get_attachment_image(), may still emit HTML for the featured image despite this plugin. As a second line of defense, the plugin loads a stylesheet that tries to hide the image if it is present in the HTML. This also might fail if the theme has used unusual entities and class names.

If you find a theme this doesn’t work with, please let me know.

Donations

The author is not soliciting donations for himself. If you find this useful and want to pay it forward, please consider donating to an organization that directly helps people in need.

Installation

  • Visit Plugins > Add New.
  • Search for “Hide featured image on all single page/post”.
  • Click Install, then Activate.
  • There is nothing to configure. If you have existing content, you’ll have to edit old posts to include the featured image where you want it.

FAQ

Why wouldn’t I want to display featured images on the page that features them?

You probably do want to display them somewhere in the post. You just might not always like the way your theme does it. If using this plugin, add the same image twice in your post — once as the featured image, and again somewhere in the content. There, you can use the position, size, wrapping, caption, and cropping you prefer.

Will this affect opengraph or other metadata?

No. Facebook or whoever will still find your featured image.

I’m mostly okay with where the featured image displays. There are just a few pages where I want to do something different.

This is not the right plugin for that situation. Instead, use Conditionally display featured image on singular pages and posts.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Hide featured image on all single page/post” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0

Initial release.