This plugin is outdated and might not be supported anymore
Disable Attachment Pages

Disable Attachment Pages

Details
View on WordPress

This plugin redirects attachment pages to the post, where they are placed (via 301). If there is no parent page, it redirects back to the WordPress home URL (via 302).

Further, when editing a post, the option to link images to their attachment page is hidden via CSS (except it is selected by default).

Details

Plugin code:
disable-attachment-pages
Plugin version:
1.1
Outdated:
Yes
WP version:
4.0 or higher
PHP version:
or higher
Test up to WP version:
5.1.19
Total installations:
400
Last updated:
2019-03-03
Rating:
Times rated:
2
attachment
attachments
images
redirect