Layers Pages Are Blank, Customizer Settings Lost
If you just updated to Layers 2, see the Layers 2 Troubleshooting Guide
After performing an action such as the following:
- Switching Themes
- Reinstalling Theme
- Activating Child Theme
- Deleting Layers, then reinstalling it
You notice your Layers pages are blank and some or all Customizer settings are reset.
If you are having a problem where clicking a page link in your site menus is loading the wrong page or a blank Layers page, but it looks fine when edited directly, please see the following for How to Verify Page Slugs and Delete Duplicates Safely
If you just updated to a recent version of Layers from a version older than 1.2.0, having pages open in the Customizer while updating, or in a status other than Published can create a blank revision of your page that gets set as the current view.
If you just updated to Layers 2 from a version prior to 1.6.8 and have Layers Pro 2 installed, outdated plugins or child themes can cause conflicts that prevent your page from loading.
Wrong theme name or modified theme
Updating WordPress or an extension may trigger an event that purges the database tables holding this information, or changes the identifier by which they are referenced, leaving your site looking empty because the wrong tables are being looked at. Because WordPress stores some information for your site in your database based on the theme name, changing the theme name directly in the Layers stylesheet or changing the folder name directly or by accident (some zip programs double-pack the unzipped file into a folder based on the zip file name) will cause functions that specifically need to qualify the theme as being “layerswp” will stop working or its settings will be defaulted. Finally, when you activate some child themes, this way of referencing your settings means WordPress will create a new settings table for this new theme activation and you will need to reconfigure your customizer settings.
if you updated from 1.2 to 2+
- Edit the page and ensure it is set to the Layers Template and is Published.
- If you changed these settings, click Edit Your Page to check for content and continue if issues persist
- In the Page Editor, scroll to the very bottom to locate the Revisions box. Click the earliest revision and see if it contains widget content. You may need to use the slider to navigate between revisions. To restore the revision with your content, click RESTORE THIS REVISION then edit your page to check for content (it should be there now). See detailed steps
- Click SAVE & PUBLISH.
If this did not solve it, or your issue is not due to updating Layers, continue:
- Make sure Layers is up to date.
- Update all of your plugins. If you have premium plugins such as Layers Pro, DevKit or StoreKit, you must download fresh copies, deactivate them, delete them, then upload the new versions and activate them. This will not lose any settings, however Layers Pro 2 introduces many new controls to your widgets that should be double-checked
Sometimes plugins introduce scripts or functions that throw errors you can’t see that break the customizer or Layers template. Common culprits include Bootstrap Shortcodes, WP External Links, WP Subscribe or other plugins that attempt to modify the customizer or pull in dynamic content to your widgets.
- Go to Plugins and deactivate all plugins.
- Check your pages again. If the issue is resolved, you will need to test activating each plugin one at a time until you find the one that breaks the page content.
The offending plugin will need to be replaced.
Update Your Child Themes
- Go to Appearance > Themes and see if you have a theme other than Layers active.
- If so, activate Layers, then check for your content.
- If this solved it, make sure your child theme has been updated for compatibility with Layers/ Layers Pro 2.
This is also true if you accidentally activated Layers after an update, but had previously built your site using a Child Theme. If so, ensure that Child Theme is active. Settings and widgets are stored in your database under the active theme name.
Check the Folder Names
If the theme name is changed in the style.css, or Layers is not installed in a layerswp folder, several functions will break.
Did you know?
Our friends at Jetpack are doing some incredible work to improve the WordPress experience. Check out Jetpack and improve your site's security, speed and reliability.