Setup & site building · Guide
How to Revert Changes in WordPress (Posts, Design, Updates)

Short answer
To revert changes in WordPress, use the Revisions panel to restore an earlier version of a post or page, the Site Editor's revision history or reset option for templates and styles, a rollback tool to return a plugin or theme to its previous version, or a full backup to restore the whole site. Pick the smallest undo that fixes the problem.
Key takeaways
- Post and page edits are reverted with revisions, which WordPress saves every time you update.
- Templates, template parts and global styles in block themes have their own revision history and reset option.
- A bad plugin or theme update can be rolled back to the previous version without restoring the whole site.
- A full backup restore undoes everything since the backup, including new orders and comments, so use it last.
- Take a backup before big changes so every kind of undo stays possible.
Which kind of change do you want to undo?
Start by naming what changed, because WordPress keeps separate histories for content, design, settings and software, and each is reverted in a different place.
| What changed | How to revert it |
|---|---|
| Text or blocks in a post or page | Revisions panel in the editor |
| A template, header or footer | Template revisions or reset in the Site Editor |
| Site-wide colors, fonts or spacing | Global styles revisions in the Site Editor |
| A plugin or theme update | Roll back to the previous version |
| A WordPress core update | Restore a backup or reinstall an older version |
| Settings in a plugin | The plugin's own export or reset option |
| Everything, after a big mistake | Restore a full backup |
Always try the smallest undo first. Restoring a full backup is powerful but also wipes out good changes made since the backup.
How do you undo an edit while you are still editing?
Press Ctrl+Z on Windows or Cmd+Z on Mac, or click the Undo arrow in the editor toolbar, to step back through changes you have not saved yet.
Undo works step by step, so you can press it several times to go back further. Redo, with Ctrl+Shift+Z or Cmd+Shift+Z, brings a change back if you went too far.
If you have not saved and want to throw away everything, leave the editor without saving. WordPress may still offer an autosave the next time you open the post; you can ignore it.
How do you restore an earlier version of a post or page?
Open the post, click Revisions in the settings panel, use the slider to find the version you want, then click Restore This Revision.
WordPress saves a revision every time you click Update, and an autosave while you work. The revisions screen shows the old and new versions side by side, with removed text in red and added text in green.
The Revisions documentation explains how revisions and autosaves work.
You can also compare any two revisions by ticking Compare any two revisions. This helps when you are not sure which version had the text you want.
Restoring a revision does not delete the newer ones. They stay in the list, so you can switch back again if you change your mind.
Why is the Revisions option missing?
Revisions only appear once a post has been updated at least once, and some hosts or settings turn revisions off or limit how many are kept.
Check wp-config.php for the WP_POST_REVISIONS constant. If it is set to false or 0, WordPress does not save revisions. A number such as 5 keeps only the last five.
The wp-config.php documentation lists this setting and related options such as the autosave interval.
Some database cleanup plugins also delete old revisions. If you rely on revisions as a safety net, check their settings so they keep a reasonable number.
How do you revert a template, header or footer in a block theme?
Open the template or template part in Appearance > Editor, use its revision history to go back to an earlier version, or reset it to the theme's original design.
Templates and template parts keep revisions just like posts. Open the item, look for Revisions in the sidebar, choose a version and restore it.
To undo all your customizations at once, open the template's options menu and choose the reset or clear customizations option. This returns it to exactly what the theme ships with.
Reset only affects the item you choose. Other templates you customized stay as they are.
How do you revert global style changes?
Open Appearance > Editor > Styles, open the revision history for styles, and restore an earlier set of colors, fonts and spacing, or reset styles to the theme defaults.
Global styles control the look of the whole site, so a change there can affect every page. The style revisions list shows each saved change with its date, and a preview before you apply it.
If you want the theme's original look back, use the reset option in the Styles menu. Any custom CSS you added in Additional CSS is kept separately, so check it too.
How do you roll back a plugin or theme update?
Install the previous version of the plugin or theme with a rollback tool or by uploading the older zip file, after taking a backup.
The free WP Rollback plugin lists earlier versions of plugins and themes from the WordPress.org directory and installs the one you pick.
For premium plugins, download the earlier version from your account with the vendor, then upload it under Plugins > Add New Plugin > Upload Plugin and choose to replace the current version.
Rolling back is a temporary fix. Tell the developer what broke, then update again once a fixed version is out. Our guide on fixing a theme that broke the site after an update covers theme-specific problems.
If the problem started with a core update, see our guide to a site broken after a WordPress update.
How do you revert changes made in a page builder or settings screen?
Page builders keep their own history, so use the builder's revisions panel; for settings, check whether the plugin has an export, import or reset option before you change anything.
Elementor, Divi and similar builders store their layouts separately from normal post revisions. Open the page in the builder and look for its History or Revisions panel, which lists saved versions you can restore.
Settings are harder, because WordPress does not keep a history of settings screens. A few precautions help:
- Take a screenshot of a settings page before you change it
- Use the plugin's export option to save its settings as a file
- Change one setting at a time and check the site after each change
- Note any value you change, so you can type the old one back
Core settings, such as permalinks or reading settings, can simply be changed back to the previous value. If you are not sure what that was, a backup of the database holds it.
For Customizer changes in classic themes, there is no built-in history, so you set the old values again by hand or restore them from a backup.
When should you restore a full backup?
Restore a full backup only when smaller undos cannot fix the problem, such as after a hack, a broken migration or many changes you cannot trace.
A full restore replaces files and the database with the backup copy. Anything added since then is lost, including new posts, comments, form entries and store orders.
Before restoring:
- Take a fresh backup of the current state, even if it is broken
- Note the date and time of the backup you plan to restore
- Export any new orders or form entries made since then
- Restore on a staging copy first if your host offers one
Our guide to restoring a backup with UpdraftPlus walks through one of the most common tools.
How do you make future changes easier to undo?
Take a backup before big changes, test updates on a staging site, keep revisions turned on, and change one thing at a time so you know exactly what to revert.
A few habits save hours later:
- Keep daily off-site backups, and an extra one before major work
- Use staging for theme switches, redesigns and big plugin updates
- Update plugins in small groups instead of all at once
- Write a short note of what you changed and when
- Keep a sensible revision limit rather than turning revisions off
If you write custom code for the site, keep it in version control with Git. Every change is recorded, and going back to an earlier version of a file takes one command.
The Learn WordPress lessons on the Site Editor and revisions are a quick way to get comfortable with these tools before you need them in a hurry.
Frequently asked questions
Can I undo changes in WordPress after saving?
Yes. Open the post or page and use the Revisions panel to restore an earlier saved version. Templates and global styles in block themes have their own revision history in the Site Editor.
How do I restore a deleted page in WordPress?
Go to Pages, open the Trash view and click Restore. Trashed pages stay for 30 days by default. After permanent deletion, only a backup can bring a page back.
How do I undo a WordPress plugin update?
Use a rollback plugin to install the previous version from the WordPress.org directory, or upload the older zip file and replace the current version. Take a backup before doing either.
Will restoring a revision delete my newer changes?
No. Restoring a revision creates a new revision from the old content. The newer versions stay in the history, so you can switch back if needed.
Why does WordPress not show any revisions?
The post may not have been updated yet, or revisions may be turned off with the WP_POST_REVISIONS setting in wp-config.php. Some cleanup plugins also delete old revisions.
Sources
- Revisions WordPress.org Documentation
- Editing wp-config.php WordPress Developer Resources
- WP Rollback WordPress.org Plugins
- Learn WordPress WordPress.org
- About Version Control Pro Git book
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


