I have created a new theme and i use it in some of my sites (multisite)
but at one site the customizer preview does not load (spinner never stops). Loading the customizer preview of other themes work just my theme does not work.

There is no error in the console of the chrome development tools.

So i tried a few things…

  • renamed the theme (folder and inside the style.css)
  • removed ALL files so that just an empty index.php and a style.css, that only contains the necessary comment, was left

But it does load, again, just at one of my multisites.

How can i debug this? Any ideas?

3 Answers
3

if customizer(live preview) doesnt work or doesnt load and nothing is shown, try these steps:

  • do you have redirections on the problematic site (double check and ensure, there might be coded a custom redirection in your plugins/codes)?
  • while the circle is still loading, change any option in customizer and click “SAVE & PUBLISH” and see, maybe a simple change will cause to arise the site.
  • try deactivating plugins.
  • do you have any custom EXIT/ DIE/ VAR_DUMP/ ECHO/ SETCOOOKIE/ commands programmed in core .php files, which may stop website loading if some conditions not met? (for example,i had similar issue, caused by me: i.e. IF (isset($_COOKIE["blabla"])) exit; )
  • try to install new WP with different url and install only theme at first, and check. then import everything and check again.. see if any difference.

Leave a Reply

Your email address will not be published. Required fields are marked *