Insert Codes is a free, open-source WordPress plugin that lets you add custom code snippets to the header, body, and footer of your site — without editing a single theme file. It is public and available to everyone, and you can download it directly from the GitHub repository.
Why you need it
Almost every site ends up needing a tracking pixel, a verification tag, or a bit of custom CSS. The usual advice is to drop it into header.php or functions.php — which works right up until the theme updates and wipes your changes. Insert Codes keeps those snippets in the database, safely outside the theme, so they survive updates and theme switches.
Features
- Three insertion points — inside
, immediately after the openingtag, and just before the closingtag. - No theme file editing — snippets are stored independently, so theme updates never overwrite them.
- Simple admin screen — a single settings page, no coding knowledge required to use it.
- Safe output — scripts are injected through the proper WordPress hooks rather than by patching template files.
- Developer friendly — hooks and filters are available for extending or overriding behaviour.
- Free and open source — released under GPLv2, public on GitHub, no license key and no paid tier.
Typical use cases
- Google Analytics / Google Tag Manager containers
- Meta (Facebook) Pixel and other ad platform tags
- Search Console and other site verification meta tags
- Custom CSS overrides for a theme or plugin
- Live chat widgets, heatmap and A/B testing scripts
- Any third-party JavaScript that has to load early or late in the page
Requirements
- WordPress 5.0 or higher
- PHP 7.4 or higher
- MySQL 5.6+ or MariaDB 10+
Download & installation
The plugin is publicly available on GitHub: github.com/wpfresher/insert-codes
- Download the repository as a ZIP file, or clone it into
/wp-content/plugins/insert-codes/. - If you downloaded the ZIP, go to Plugins → Add New → Upload Plugin in your WordPress admin and upload it.
- Activate the plugin.
- Open Insert Codes in the admin menu, paste your snippets into the header, body, or footer field, and save.
Contributing
Issues, feature requests, and pull requests are welcome on the GitHub issue tracker. The plugin is GPLv2 licensed, so you are free to use, modify, and redistribute it.

Leave a Reply