WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager
Home/Plugins/insert-headers-and-footers
WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager

WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager

Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditional logic, insert ads pixel code, and more.

4.9(1,674 ratings)

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

  1. Install WPCode – Insert Headers, Footers, and Code Snippets plugin by uploading the insert-headers-and-footers directory to the /wp-content/plugins/ directory. (See instructions on how to install a WordPress plugin.)
  2. Activate WPCode – Insert Headers, Footers, and Code Snippets plugin through the Plugins menu in WordPress.
  3. Insert code in your header and footer or add custom code snippets by going to the Code Snippets menu.
WP-CLI Installation:
wp plugin install insert-headers-and-footers --activate

Frequently Asked Questions

Can I use WPCode – Insert Headers and Footers to install Google Analytics?

Yes, you can insert your Google Analytics code in the Scripts in Header field.

Can I use WPCode – Insert Headers and Footers for Google AdSense?

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.

Will I lose my snippets if I change my WordPress theme?

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]

Statistics

Active Installs2.0M+
Downloads74.4M+
Version2.3.0
Last UpdatedInvalid Date

Requirements

WordPress
4.6+
PHP
5.5
Tested up to
6.8.3

Support

Resolution Rate54%
Total Threads13
Resolved7

Tags

codecode-snippetscssheaderphp