WordPress Block Theme Site Editor Changes Not Saving or Reverting
In the Site Editor, template changes can fail to save or seem to revert because of user data, caches or permissions.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Know how it works
Changes in the Site Editor are stored in the database as custom templates, and they override the theme's files.
Check
- Save each item in the save panel. There may be several entries listed to save.
- Look for REST API errors. See Gutenberg Editor Says Updating Failed or Publishing Failed.
- Clear caches.
- A theme update may reset customizations; use Clear customizations only if you want to go back to defaults.
- A user role without the right permission cannot save templates.
Backup
Export your templates or take a database backup before big changes. See WordPress backups.
Related guides
- WPForms or Gravity Forms Entries Not Saving
- WordPress Shows the Wrong Time or Publishes at the Wrong Time
- Where to Add Custom CSS or Code in WordPress Without Losing It After Updates
- "The Uploaded File Exceeds the upload_max_filesize" in WordPress: Fix
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.