Header and Footer Scripts

plugin banner

Header and Footer Scripts plugin enables you to add scripts to WordPress header and footer.

Author:Anand Kumar (profile at wordpress.org)
WordPress version required:4.6
WordPress version tested:6.9.1
Plugin version:2.4.2
Added to WordPress repository:20-02-2014
Last updated:01-02-2026
Rating, %:92
Rated by:58
Plugin URI:https://github.com/anandkumar/header-and-foot...
Total downloads:1 646 238
Active installs:200 000+
plugin download
Click to start download

An essential WordPress plugin to easily insert scripts and styles (like Google Analytics, CSS, etc.) into your website’s header and footer.

Looking for a way to add Google Analytics, Facebook Pixel, or custom tracking code to your website’s header or footer?

Header and Footer Scripts is a simple yet powerful plugin that lets you inject code—such as Google Analytics, custom CSS, Facebook Pixel, and chat widgets—directly into your site’s header (<head>) or footer.

No bloat, no ads. This lightweight plugin simply does what it says: inserts code into your header and footer efficiently.

All you have to do is add the appropriate HTML code.

Don’t forget to wrap your code with proper tags.

<script type="text/javascript">
YOUR JS CODE HERE
</script>

Or for CSS:

<style type="text/css">
YOUR CSS CODE HERE
</style>

Why use this plugin:

  • Insert scripts globally into the header and footer of your entire website.
  • Supports all script types including HTML, JavaScript, and CSS.
  • Add specific scripts to the header of individual posts or pages.
  • To insert code to Custom Post Type [New Feature].

The plugin should be compatible with WooCommerce.

What it does not offer

  • You can’t insert/execute PHP codes.

Almost all WordPress themes support this “Header and Footer Scripts” plugin. If the codes are not appearing in your site [ask for support] or look at your theme file if they have standard wp_head and wp_footer hooks.

Important Links

For further information you are welcomed to follow these links:


Screenshots
FAQ
ChangeLog