How often have you heard that in order to add custom code to your WordPress site you need to create a child theme and add the code to its function.php file? I know, too often.

The good news – there is an easier way of doing it and that is by using the plugin called Code Snippets.

Once installed, you’ll have a section called Snippets added to your dashboard:

From here, click on “Add New” to create a new snippet:

Once you insert the code into the dedicated input area, click on “Save & Activate” and you are all set! You no longer need to worry about your snippet not working after a plugin or theme update since it is being run separately and stays intact during updates.

As always, feel free to reach out in comments or via Contact Form of the site.

Happy Snippeting! 🙂

Posted by Julia Amosova

I love traveling, New York City, coffee, my husband, late mornings, taking pictures, new cool technologies and good books.

One Comment

  1. […] To implement the snippet, we are going to use a plugin called Code Snippets. You can read a post about where to download it and how to use it here. […]



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s