Many of our documentation articles involve using custom code snippets. Here is how to add a snippet to the site safely and easily.
1. Install and activate this free plugin:
By using the plugin above you can add snippets safely without having to worry about errors or breaking the site.
2. For JavaScript snippets go to Snippets -> All Snippets -> Example JavaScript Snippet:
![](https://woocommerce-multivendor.com/wp-content/uploads/2020/12/image-35.png)
Then you can copy paste the snippet itself here:
![](https://woocommerce-multivendor.com/wp-content/uploads/2020/12/image-36.png)
Click "Save Changes" and that's it.
3. For PHP Snippets go to Snippets -> ADD NEW
![](https://woocommerce-multivendor.com/wp-content/uploads/2020/12/image-37.png)
Then copy paste the code here:
![](https://woocommerce-multivendor.com/wp-content/uploads/2020/12/image-38-1024x681.png)
Click "Save Changes" and that's it.