Easy to use Under Construction Page & Coming Soon Page. Enable Under Construction Mode in seconds & sh...
Easy add site-wide, category and article specific custom code before the closing </head> and </body>, or after opening <body> tag.
The Head & Footer Code plugin allows you to add custom code snippets such as JavaScript, CSS, or HTML to your WordPress site without needing programming skills. You can insert code into the head, body, or footer sections of your site, making it suitable for tasks like site verification, tracking, and custom styling.
You access the plugin through the WordPress Dashboard under Tools → Head & Footer Code. It supports various code snippets for services like Google Analytics and Facebook Pixel, and allows for article-specific or category-specific code insertion.
Best for: This plugin is suitable for website owners who need to add custom code snippets for tracking or styling without coding experience.
What it does well
Where it falls short
Head & Footer Code is a straightforward solution for adding custom code to your WordPress site, ideal for users looking to implement tracking or verification codes easily.
Aleksandar Urošević's own description of Head & Footer Code, lightly tidied.
Head & Footer Code plugin helps you add custom code snippets (JavaScript, CSS, or HTML) to the page even if you are not a programmer. It could be within the <head> (site verification code for various services, custom styles, meta or Webfont link), right after opening <body> (pixel tracking, analytics or heatmap code) or just before closing </body> tag.
Go to Tools → Head & Footer Code in WordPress Dashboard. Insert custom code to HEAD, BODY or FOOTER section (depending on what you have to do).
All magic is done by hooking to WordPress hooks wp_head, wp_footer and wp_body_open.
💡 Trial Head & Footer Code plugin on a free dummy website before you add it on your project: Test It Now!
Various code snippets are supported, including but not limited to:
If your WordPress shows the latest blog posts on the homepage, you can also add specific code only for the homepage on Tools → Head & Footer Code (there will be section Head, body and footer code on Homepage in Blog Posts mode)
To insert custom code specific for individual article (post, page or custom post type), use article-specific Metabox while editing post/page/custom post type (check out Screenshots). There choose if that specific code appends to site-wide code defined on Tools → Head & Footer Code, or to replace it.
You can also define a Category specific code on each individual category.
Other taxonomies (tag and custom taxonomy) do not have available their specific code, but for them a Global code is used instead.
If Head & Footer Code does not work on your project, please let us know by raising a new support ticket in the Community Forum and describe what does not works and how to reproduce the issue. We will make sure to resolve the issue as soon as possible.
Other plugins for measuring traffic.
Easy to use Under Construction Page & Coming Soon Page. Enable Under Construction Mode in seconds & sh...
Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...
The best free Google Analytics plugin for WordPress. See how visitors find and use your website so you can gro...
Great looking maintenance, coming soon & under construction pages. Put your site under maintenance in minu...
Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...
Adds Google Analytics tracking code to your WordPress site. Supports many tracking features.