Install Code Snippets
In WordPress: Plugins → Add New → search “Code Snippets” → Install → Activate. This replaces editing functions.php directly.
If a function does not seem to work, the first thing to do is double-check that the code has been copied exactly as provided. Then, make sure the snippet is actually active (look for the green toggle) and confirm that the scope is correct — for example, “Run Everywhere” if it’s needed globally, or “Front-end” if it only affects your public site. In some cases, refreshing both your browser cache and any plugin cache will make the change visible.
If the site crashes after activating a snippet, don’t panic. Code Snippets has a built-in Safe Mode.
By enabling it, all snippets are paused, giving you access to the admin area where you can deactivate the problematic one. If you cannot access the dashboard at all, you can force Safe Mode by editing the wp-config.php file and adding the following line: define('CODE_SNIPPETS_SAFE_MODE', true);
This will allow you back in so you can safely turn off the faulty snippet.
If you see a PHP error after saving a snippet, it usually means there is a small typo, such as a missing semicolon or bracket. Compare the code carefully with the example we provided. If you are unsure, just deactivate the snippet and contact us with the error message so we can help.
If nothing seems to work and you cannot access the site at all, you can always restore access manually. Connect to your site files via FTP or your hosting control panel, open wp-config.php, and add the Safe Mode line shown above. Once you log back in and deactivate the broken snippet, you can remove that line from the file.