[Resolved] What to do if a snippet breaks your site
Oh no! You’ve just activated or edited a snippet, and some error in the code has made your whole site come crashing down into a white screen of death. And the worst of it is, you can’t access your admin panel to deactivate the offending snippet.
Thankfully, Code Snippets includes a built-in ‘safe mode’. This means that snippets will not execute while it is active, so you can access your site and deactivate the snippet causing an error. To activate safe mode, add the following line to your
wp-config.phpfile, just before the line that reads
/* That's all, stop editing! Happy blogging. */:
To turn safe mode off, either comment out this line or delete it.
- The topic ‘[Resolved] What to do if a snippet breaks your site’ is closed to new replies.