WPCode Logo

WPCode Documentation

Documentation, Reference Materials, and Tutorials for WPCode

Most Popular

Get free tips and resources right in your inbox, along with 500+ others

Follow Us

Using the Global Header & Footer settings

The Header & Footer option in the WPCode plugin makes it easy for you to quickly add scripts to your whole site in the Header, Footer or the Body. If you’ve been using the previous version of the Insert Headers & Footers plugin you will find the same scripts that you had there in these settings.

Updating Headers and Footers

To access the Header & Footer options you’ll need to go to wp-admin > Code Snippets > Header & Footer in the left side menu.

Headers & Footers only mode

If you’d prefer to only use these fields instead of the full code snippets functionality, you can switch to that by:

  1. Go to Code Snippets > Settings
  2. Enable the “Headers & Footers mode” option
  3. Save the changes using the top-right button

With the stripped-down headers & footers mode you can use the plugin similarly to the legacy Insert Headers and Footers plugin and update the headers & footers from Settings > Header & Footer.

If, at any time, you wish to switch back to the Code Snippets mode you can do so by disabling the “Simple mode” toggle in the Header & Footer page.

Turning off that toggle and saving the changes will enable the full Code Snippets functionality while keeping the Headers & Footers fields under Code Snippets.

Page-specific scripts

If you want to add page-specific snippets you can do so by creating new snippets under Code Snippets > + Add Snippet and limiting the snippet auto-insert execution using the Smart Conditional Logic options.


Still stuck? How can we help?

Last Updated on

Get Started Today & Add Your Own Snippets

Future-proof your website with WPCode Snippets and improve the way you manage code across all your websites.