Sometimes you need to update a photo — maybe it’s outdated, incorrect, or lower quality than you’d like. Replacing an image in WordPress is simple, but it’s important to do it correctly so you don’t accidentally break layout or remove the image from other pages.
This guide explains the safest way to replace images.
Before you begin, it’s important to understand:
Replacing an image updates it in one specific location.
Deleting an image removes it from the entire website.
If you delete an image from the Media Library, it disappears everywhere it is used.
In most cases, you should replace the image inside the page editor — not delete it from the Media Library.
To safely replace an image on a page:
Go to the page you want to edit.
Click Edit Page.
Click on the image block you want to change.
Click Replace in the block toolbar.
Choose one of the following:
Upload a new image
Select an image from the Media Library
Adjust alignment or size if needed.
Click Update.
This replaces the image only in that specific block.
When you replace an image inside a page:
The old image remains in the Media Library.
Other pages using that image are unaffected.
Only the selected block updates.
This is the safest approach.
In some cases, you may want to replace the actual file in the Media Library while keeping it in all existing locations.
For example:
A company logo update
A corrected graphic used across many pages
A downloadable PDF that has been revised
By default, WordPress does not overwrite media files automatically. Replacing the file itself may require:
Uploading a new file and updating all references
Or using a plugin that allows file replacement
If unsure, ask before attempting to replace a widely used file.
After replacing an image, check:
Alignment (left, center, right)
Display size (thumbnail, medium, large, full)
Spacing above and below
Mobile layout
Even if the image is replaced correctly, different image dimensions can affect layout.
To avoid layout shifts:
Try to use a replacement image with similar dimensions.
Keep aspect ratios consistent.
Avoid replacing a wide image with a tall one (or vice versa).
If replacing a team photo grid, keep all images the same shape for visual consistency.
After replacing an image:
Review the alt text field.
Update it to match the new image.
Keep it descriptive and concise.
Alt text does not automatically update when replacing images.
Deleting the image from the Media Library instead of replacing it
Uploading a much larger file that slows the page
Replacing with a differently shaped image that disrupts layout
Forgetting to click Update after replacing
Forgetting to preview before saving
Always preview changes before finalizing.
Some pages use a Featured Image (often displayed as a banner or thumbnail).
To replace a Featured Image:
Edit the page.
Look for the Featured Image panel in the right sidebar.
Click Replace Image.
Upload or select a new image.
Click Update.
This updates the page’s main representative image.
A reliable process for replacing images:
Prepare and resize the new image.
Edit the page.
Click the existing image.
Click Replace.
Insert the new image.
Review alignment and spacing.
Preview the page.
Click Update.
This keeps layout intact and prevents accidental deletion.
You may want to check first if:
The image is part of a design template.
It appears in multiple places.
It is part of a shared layout block.
It is controlled by a theme or plugin.
Replacing images inside structured layouts (like Columns or Groups) requires care.
To replace an image safely:
Edit the page.
Use the Replace option in the Image block.
Avoid deleting files from the Media Library.
Preview before updating.
Replacing images properly keeps your layout intact and your website looking polished.