Description
Insert Headers & Footers + Full WordPress Code Snippets Plugin
WPCode (formerly known as Insert Headers and Footers by WPBeginner) is the most popular code snippets plugin for WordPress used by over 2 million websites.
We make it easy for you to add code snippets in WordPress without having to edit your theme’s functions.php file.
Our simple insert headers and footers interface allows you to insert code like Google Analytics, custom CSS, Facebook Pixel, and more to your WordPress site’s header and footer as well other areas of your website. No need to edit your theme files!
Aside from Header and Footer scripts, you can also use WPCode to insert custom PHP code snippets, JavaScript code snippets, CSS code snippets, HTML code snippets, and text snippets with full conditional logic support.
We took the pain out of adding custom code snippets in WordPress and made it easy.
I have been using Insert Headers and Footers and it is such a useful tool. Super helpful and the very best of its kind. Highly recommend
The_Gibble – WordPress user
Quick Overview of WPCode from WPBeginner
Introducing New WPCode Pro
While WPCode Lite offers tons of powerful features for free, we listened to user feedback and created WPCode Pro with even more amazing features to improve your workflow. This includes smart conditional logic, saving code snippets... [truncated]
Installation
- Install WPCode – Insert Headers, Footers, and Code Snippets plugin by uploading the
insert-headers-and-footersdirectory to the/wp-content/plugins/directory. (See instructions on how to install a WordPress plugin.) - Activate WPCode – Insert Headers, Footers, and Code Snippets plugin through the
Pluginsmenu in WordPress. - Insert code in your header and footer or add custom code snippets by going to the
Code Snippetsmenu.
wp plugin install insert-headers-and-footers --activateFrequently Asked Questions
Yes, you can insert your Google Analytics code in the Scripts in Header field.
Yes, to verify your account or to tag your page for Auto ads, paste the code AdSense gives you, into the Scripts in Header field.
No, the idea behind WPCode – Insert Headers, Footers, and Code Snippets plugin is so you can safely add code snippets.
All code snippets are stored in the WordPress database, independent of the theme... [truncated]
Changelog
2.3.0
- New: We added a way to 1-click update snippets installed from the WPCode library when new versions are available.
- Tweak: We improved JSON code snippets import validation to show accurate error messages when files are incorrectly formatted.
2.2.9
- New: Added a new importer for the Post Snippets plugin to make it easier to migrate your code snippets.
- Tweak: We adjusted the way the safe mode works to limit its effects on frontend urls.
2.2.8
- New: Schema Generators – we added 20 new code generators to make it easier to manage schema code on your website.
- Tweak: We moved the button to update generated snippets to the top so that you can update snippets easier.
- Tweak: We added “suppress_filters” to WP_Query used by WPCode to avoid conflicts with other plugins.
- Fix: We fixed an issue where the generated snippets were not automatically inserted when ac... [truncated]
