How to fix the WordPress customizer preview not working ( Appearance -> Customize )
image source: wordpress.org
You may have login to your WordPress dashboard -> Appearance -> Customize and found that it's not loading or some settings are not working properly.
Before doing anything else :
- Make sure that you have updated WordPress to its latest version
- Update your active theme and plugins to their latest versions
- If you use a child theme, switch to the parent theme instead
If those first pre-requisite steps did not solve the problem, you'll need to follow a troubleshooting process.
First of all, install the official WordPress Health Check Plugin : this plugin allows an admin to safely troubleshoot your site, switch theme and disable plugins without changing your visitors experience.
Browser problems
- Try to clear your browser cache
- Try to login to your website on another browser
- You may use a browser extension that breaks the live customizer. For example, the Dashlane extension for chrome has been reported to be in conflict when using the WordPress customizer.
WordPress Address (URL) and Site Address (URL) are not the same
- Login to your WordPress dashboard
- Go to Settings -> General
- Your WordPress Address (URL) and Site Address (URL) have to be identical. The preview will not load if you use different URL
Plugin Conflict or Error
A plugin conflict can cause Customizer preview to stop loading or part of it to stop working properly.
- If you have a cache plugin or server cache. You need to purge it's cache contents and disable it.
- De-active all your plugins
- Clear your browser history and visit your Appearance -> Customize to see if it works.
- Re-activate back one plugin at a time.
- Clear your browser history and visit your Appearance -> Customize to see if it works.
- If you have found a plugin that breaks your Appearance -> Customize.
- You can double check by activating only this plugin and deactivate all other plugins.
- Visit Appearance -> Customize and see if it works.
- If it works, then it's not a plugin conflict, it's your server not having enough resources.
- If it does not work, then you have found the plugin that's causing conflict.
Server Memory Issue
- Deactivate all your plugins.
- With all your plugins deactivated, visit Appearance -> Customize and see if it works properly.
- If the customizer still does not work, go to the next step
- If the customizer works :
- Randomly active back a few "large" plugins and check if your customizer is working properly.
- If yes, this confirms that you are having a memory issue. You will have to contact your web hosting company to increase your resources, or deactivate a few not important plugins
See how to fix memory problems here and here.
Computer Hardware
Some notebook computers may not have enough processing power to run your browser while in customizer Preview.
- Try to login to your website on another computer
- Login to your WordPress dashboard, Go to Appearance -> Customize are see if it works properly.
- If it works, then your usual computer may not have enough processing power to run web browser in customize preview.
Javascript error
You may have added a custom javascript code snippet somewhere, for example with a plugin, or in a widget, that breaks your site. You can easily see javascript errors on your site by opening the browser developer tool.