Support Home > Utilities > Add PHP Code Without Editing Files

Add PHP Code Without Editing Files

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.

There are several functionality plugins available in the repository. The instructions below explain how to install and use Code Snippets.

  1. Go to PluginsAdd New and install and activate the plugin. This will add a Snippets item to your wp-admin dashboard menu.
  2.  Navigate to Snippets → Add New. Snippets → Add New
  3. Enter a title.
  4. Paste or type your code in the Code field
  5. Click Save Changes and Activate.

Still having trouble?

Feel free to contact us!

  • Table Of Contents

  • Categories

  • Contact Us

    Need more help? Feel free to contact us.