> ## Content Index
> Fetch the complete content index at: https://wp-pluginskit.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# Enable Media Replace
- URL: https://wp-pluginskit.org/enable-media-replace/
- Published: 2026-11-26T12:27:14.000Z
- Updated: 2026-11-27T16:17:48.000Z
- Description: Replace an existing image or PDF, keep its address when needed, and verify the new file without losing your recovery route.
- Author: Eric Bennett
- Tags: Plugins, #free, Images and media

Use Enable Media Replace to update an image or PDF already in your WordPress Media Library. Choose **Just replace the file** to keep its filename, using a replacement of the same file type. Save the old file and a restorable site backup first: replacement overwrites the original, and the plugin doesn't keep an undo copy.

## Keep the address or deliberately change it

For a revised PDF that people already have bookmarked, I'd keep the existing address. The same approach works for an updated image that should change everywhere the original is used. If you want a different image on only one page, upload it as a separate Media Library item and change that page's image instead.

The [free plugin's two replacement methods](https://wordpress.org/plugins/enable-media-replace/?ref=wp-pluginskit.org) serve different purposes. The first retains the existing filename even if the file on your computer has a different name. It requires the same actual file type: replace a PDF with a PDF, a JPEG with a JPEG, or a WebP with a WebP.

- **Just replace the file:** use this for a corrected version that should occupy the same location. Check the old address after uploading and purge any cached copy.
- **Replace the file, use the new file name, and update all links:** choose this when the filename or file type needs to change. Review the final name and location before uploading, then check the affected pages.

The second option updates references handled by the plugin on your WordPress site. It cannot rewrite a link in someone else's website, an email already sent or a downloaded document. The replacement screen explicitly warns about links from other websites. Plan how those old addresses will work before renaming a widely shared download.

![Replacement Options with Just replace the file selected and the rename-and-update-links option below](https://storage.ghost.io/c/22/ff/22ffd352-f3bc-45bd-a485-cf053432a3b5/content/images/2026/11/enable-media-replace-methods-portrait-21652b85.webp)

The first method keeps the existing name and requires the same file type. The second changes the name and warns about links from other websites. [View full size (opens in a new tab)](https://storage.ghost.io/c/22/ff/22ffd352-f3bc-45bd-a485-cf053432a3b5/content/images/2026/11/enable-media-replace-methods-portrait-21652b85.webp?ref=wp-pluginskit.org)

Don't rename a PNG extension to JPG to make it fit the first method. ShortPixel's [explanation of converted originals and backups](https://shortpixel.com/knowledge-base/article/enable-media-replace-is-removing-the-original-files/?ref=wp-pluginskit.org) describes how a PNG uploaded over an already converted JPG can leave a file whose contents and extension don't match. Check the type of the item currently in the library, including any earlier conversion by an optimizer.

## Prepare the file and the recovery route

Download the current file somewhere outside the site, note its File URL and identify the pages that use it. Make a restorable backup of the files and database; the [UpdraftPlus setup](https://wp-pluginskit.org/updraftplus/) covers that separate backup workflow. For a shared document, open the replacement locally and confirm its revision, page count and important links before putting it online.

Keep an image large enough for the largest placement that still needs it. The developer's [replacement troubleshooting instructions](https://shortpixel.com/knowledge-base/article/in-enable-media-replace-the-image-isnt-replaced-why/?ref=wp-pluginskit.org) explain that replacing a large original with a much smaller one can leave references to sizes the new source cannot supply. A thumbnail regenerator cannot create missing detail from a small source.

I'd try a consequential change on a copy of the site first, especially when a page builder, media offloading or an image optimizer is involved. ShortPixel warns that its optimizer's old image backups are removed when the image is replaced. Those backups are not a recovery plan for the previous media item.

Install the current release rather than following an old download link. The [4.2.3 release notes](https://wordpress.org/plugins/enable-media-replace/?ref=wp-pluginskit.org#developers) include security fixes for database replacement, file checks and permissions. In that release, Authors only see the standard replacement option; renaming, changing location and background removal are limited to Editors and above. A missing option can therefore reflect the account's role.

## Replace one item, then open its real address

1. Open **Media → Library**. In List view, find the existing item and choose **Replace Media**. You are opening the old attachment, rather than adding a second item.
2. On **Replace Media Upload**, confirm the original filename. Select your replacement from the new-file area. Check the site's displayed upload limit and any file-type warning.
3. Choose the replacement method. For the same address, confirm that the new file's actual type matches the existing item. For a new name, review the destination and the consequences for external links.
4. Review the date options. Select **Keep the date** if you need to retain the existing attachment date; choose a new or custom date only when that is intentional. Check the destination folder too if you are changing location.
5. Click **Upload**. After the plugin returns you to the media item, copy its File URL and open it directly. Compare the content with the replacement you selected.
6. Open the pages using that item. Check desktop and phone layouts for an image; for a PDF, download it and check the actual document as well as the page's download link.

![Enable Media Replace date choices: current date, Keep the date and Set a Custom Date](https://storage.ghost.io/c/22/ff/22ffd352-f3bc-45bd-a485-cf053432a3b5/content/images/2026/11/wppluginskit-enable-media-replace-context-desktop-d013e43746.webp)

Choose Keep the date when the existing attachment date needs to stay unchanged.

Dave Loebig's [Media Library walkthrough](https://pacesettermedia.com/blog/2025/wordpress-enable-media-replace-adds-a-very-useful-function/?ref=wp-pluginskit.org) also shows an **Upload a new file** button in Attachment details. If your view has that button, it opens the replacement screen. The List view route is a useful alternative when the replacement action is difficult to find.

A successful check means the intended content opens at the intended address and the pages using it still work. The replacement preview alone doesn't establish that a visitor is receiving the new file.

## Find out why the old file still appears

Start with the direct File URL, then compare the page where you use it. That separates a stale file response from a page that still points to a different attachment or image size.

- **The direct URL shows the old image.** Follow ShortPixel's diagnostic: open the image URL with a temporary query string such as `?replacement-check=1`. If the two addresses show different versions, a cache is serving the older response. This is a diagnostic comparison, not the permanent link to publish.
- **The fresh request shows the replacement.** Purge the affected file from your CDN or hosting cache, clear the relevant WordPress cache and refresh the browser. Retest the ordinary address. If it remains stale, give the host both URLs and ask which cache serves the file.
- **The original looks new but a page image looks old or broken.** Check the image URL used on that page and the replacement's dimensions. A smaller source may not supply a previously used large size. Restore a sufficiently large source and check the affected placements before running a bulk thumbnail job.
- **Replacement fails or the file never changes.** Read the error, check the upload limit and confirm that the replacement is an allowed file type. After a migration, ask the host to check both file ownership and write permissions; don't make the entire uploads directory publicly writable.

The [Pressbooks replacement discussion](https://pressbooks.community/t/cannot-remove-replace-a-file-in-media-help/2031?ref=wp-pluginskit.org) ends with the reader confirming that clearing the cache revealed the new file. A separate [PDF replacement discussion](https://www.experts-exchange.com/questions/28495469/Enable-Media-Replace-Wordpress-Plugin-not-working.html?ref=wp-pluginskit.org) reports success after purging the old URL from a hosting cache. These are accounts of those installations, not proof that every unchanged file has the same cause.

The developer's [file ownership and permissions guidance](https://shortpixel.com/knowledge-base/article/why-the-plugin-cannot-overwrite-a-file-what-are-the-necessary-permissions/?ref=wp-pluginskit.org) explains why apparently correct permissions can still fail after a host move. I'd resolve the specific error with the host before repeatedly overwriting the attachment.

## Separate replacement, optimization and search

Replacing media changes the source file. [Regenerate Thumbnails rebuilds registered image sizes](https://wordpress.org/plugins/regenerate-thumbnails/?ref=wp-pluginskit.org) from a source already in the library, such as after a theme change. An optimizer such as [ShortPixel Image Optimizer compresses images and creates delivery formats](https://wordpress.org/plugins/shortpixel-image-optimiser/?ref=wp-pluginskit.org). Choose the job you need rather than installing all three to fix one stale picture.

For a searchable PDF library, also search for a distinctive phrase from the new document after replacement. SearchWP provides an [integration to re-index replaced media](https://searchwp.com/features/enable-media-replace-integration/?ref=wp-pluginskit.org); that is a feature of the search product, not an automatic promise that Enable Media Replace updates every search index. Check whichever search tool the site uses.

Background removal is a separate optional workflow. The plugin listing says it sends the image to ShortPixel's API for processing. Skip that action for a straightforward file replacement, and assess the upload before using it for a private image.

My default is a same-type replacement at the old address, followed by a direct download and a check of the pages using it. Rename only when the new name or format is needed and the old links have a plan.

Setup guide+

## Install Enable Media Replace and prepare the first replacement

Use an account allowed to install plugins. On a managed site, ask its administrator to enable the plugin rather than changing access controls yourself. Have your backup and replacement ready before opening the upload screen.

1. Go to **Plugins → Add New Plugin**, search for **Enable Media Replace** and confirm the developer is **ShortPixel**. Check More Details for compatibility, install the current release and activate it. WordPress documents this [built-in plugin installation route](https://wordpress.org/documentation/article/manage-plugins/?ref=wp-pluginskit.org).
2. Go to **Media → Library**, switch to List view and locate the existing file. Save its URL and a separate copy of the current download.
3. Open **Replace Media**, select the prepared file and follow the [replacement and verification steps](#replace-and-verify). Use the same file type for the method that keeps the name.
4. Check the ordinary File URL and the affected pages. If an old version appears, use the [cache and image-size checks](#check-cache-and-missing-sizes) before trying another replacement.

Stop when one replacement opens correctly and its existing placements still work. Keep the previous file and backup until that check is complete.