Want to add a code snippet without having to edit your theme’s functions.php file? This document explains how to use a functionality plugin instead.
Editing your theme’s
functions.php file carries the risk of breaking the rest of the code in the file and also opens you to the potential that the code will be lost when you update your theme. Instead, you can safely add code snippets using a plugin.
- Go to Plugins → Add New and install and activate the plugin. This will add a Snippets item to your wp-admin dashboard menu.
- Navigate to Snippets → Add New.
- Enter a title.
- Paste or type your code in the Code field
- Click Save Changes and Activate.
Still having trouble?
Feel free to contact us!