Media Replacement with Enable Media Replace by ShortPixel

Header Image

One of the best (and easiest) ways to speed up your WordPress website is through media file size reduction and image optimization. While there are various tools that you can use to improve site performance, here we’ll briefly discuss the ShortPixel plugin, with specific focus on a use case scenario involving the Enable Media Replace companion plugin.

First of all, you’ll probably want to install and run ShortPixel on your website, specifically if you don’t already have an image optimization plugin. ShortPixel is free to start using but there are certain limitations, as you’ll only get 100 free optimizations per month. They do offer various affordable monthly plans, one-time credit purchase options, and dedicated server options as well. And although the Enable Media Replace plugin is created by the ShortPixel development team, it will function just fine on its own.

Default Media File Replacement

Replacing images and other media files in WordPress can be a tedious process, which is not always a problem if that isn’t something you have to do frequently. However, if you do find that you’re needing to swap out photos or update documents on your website on a regular basis, you’ll quickly notice that the default process for doing such tasks is somewhat complicated.

For instance, in order to simply replace an image that is already displayed on a page or post of your site, you’ll have to follow these steps:

  1. Access the image or document in the media library
  2. Delete that item
  3. Upload the replacement image or document
  4. Edit the post or page
  5. Link the new image to that post or page again
  6. Clear the cache to ensure you see the updated item on the front end

When switching out media files this way, it’s important to go through the steps in the order noted above, especially if you want to keep the same file name. If you decide to replace a media file with another one that has exactly the same name, and upload the new file before deleting the old file, then the new file name would automatically be appended with a “-1” placed at the end, so there are no conflicts when those files are served up.

Enable Media Replace to Change Files with Ease

Regardless of whether or not you’re using the ShortPixel image optimization plugin, utilizing Enable Media Replace really couldn’t be more simple. Once it is installed and activated, it’s ready to use right away…all you need to do is go into your media library, select the item that you’d like to replace, and you’ll notice a new option on the “Attachment details” screen that says “Replace media.”

There, you’ll also notice a button that says “Upload a new file,” which will then take you to the “Replace media upload” screen. Selecting the replacement media file is much like uploading items into the media library, where you can either click the “Choose file” button to select a file from your computer, or you can simply drag and drop the file into the media upload area.

Below the media upload area, there will be a sort of preview of the item that was selected for replacement, with a grey box that shows the original dimensions, and the size of the file is displayed below it. Once you’ve selected the file that will be uploaded to replace the old one, you’ll also see a similar preview of that one as well.

Before you finally upload the replacement file, there are a couple of other options to consider and this is where the Enable Media Replace plugin really shows its strength. Here you two replacement options:

  1. Just replace the file - the replacement file type must be the same and the file name remains unchanged, after it is uploaded.
  2. Replace the file, use new file name and update all links - with this option, the name and type of the file you upload will replace the old file and all the links to the old file will be updated to point to the new file name (If there are other places on the web that link to the file being replaced, you’ll also have to add a redirect to avoid broken links).

Finally, there are also three date options to choose from as well: Replace the date, keep the date, and set a custom date. These are pretty self explanatory, but just for the sake of clarity, replacing the date will change the original upload date to the date the new file was uploaded, keeping the date will leave the original upload date in place, and setting a custom date will allow you to set the upload date to any date of your choosing.

Considerations, Applications, and Conclusions

Enable Media Replace allows you to seamlessly upload and replace any item in your media library without having to delete the file being replaced or even going to the page or post where the file is linked. This can be a real time saver for website owners who regularly update images or provide downloadable documents that need to be updated frequently.

One particular application that this plugin would be handy is for a website where various pdf documents are available for download. If an original file is found to have typos, or simply needs to be updated regularly, those files can be updated and then easily replaced with the mere click of a button, rather than going through the convoluted process that is necessary without Enable Media Replace.

In conclusion, this simple, lightweight, and free plugin known as Enable Media Replace is a must have tool for anyone who finds themselves needing to replace media files on their website. Even if you don’t need to swap out media files very often, it’s so convenient and easy to use that it hardly makes sense not to have it installed.

Category:

Do you need WordPress contractors to meet demand?

Hire pre-screened, expert WordPress contractors. Our platform is part of the Esteemed Colleagues Community. We provide world-class WordPress talent that brands can trust — through tools they already use. We work as an extension of our clients in close collaboration to provide vetted architects, developers, designers and digital professionals.

If you need help hiring for digital, or to scale up to meet demand, please let us know. We'll be happy to get you started with a custom Esteemed subscription plan..