Before editing your theme/configuration/plugin files, it is recommended to take a backup of the file you are changing. If things go wrong you can replace the edited file with the backed up file while diagnosing the issues. So, take a backup first.
- The code snippets with the code icon (<>) should be placed in your theme's functions.php file or any other plugins that allows adding custom PHP codes.
- The code snippets with the gear icon (⚙) should be placed in the wp-config.php file in the root folder of your WordPress installation.
- You do not have to copy the comments (// this is a comment, ## this is also a comment ##, /** this is a multi-line comment */) for the code to work.