🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Conta Get it free
Header and Footer Scripts icon
Mantido Testado até 6.9.12 #242 Plugin mais instalado #4 in footer

Header and Footer Scripts

Header and Footer Scripts plugin allows you to add scripts to WordPress site's and just before closing tag.

Instalações ativas200K+Nível 100K+
Downloads · 30d20.6K▲ +60.6% vs prev. 30d
Classificação4.6/558 comentários
Pontuação da saúde51/100Justo
Downloads de todos os tempos1.8MDesde fevereiro de 2014
Suporte resolvido0 / 10% nos últimos 2 meses
RequerWP 4.6PHP 5.6+
Classificação geral#242of 77,094 plugins
Nosso veredicto

Use com cautela

Header and Footer Scripts works, but test it on a staging site before relying on it in 2026. It runs on 200K+ sites, is rated 4.6/5 and was last updated 10 months ago, and scores 51/100 on our health check.

  • Comprovado em escala em mais de 200 mil sites ativos
  • Loved by users — 4.6/5 from 58 reviews
  • Momentum — downloads up 60.6% vs the previous 30 days
  • Testado apenas até WordPress 6.9 (mais recente é 7.1)

Como ele se acumula?

Lado a lado em instalações, atualizações, avaliações e suporte

Downloads diários

1.5K2.9K4.4KSep 2Oct 16Nov 30
Ontem1,014
Média diária (1y)858
Dia de pico29,486Feb 2, 2026
Últimos 12 meses312.3K

Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.

Rankings

Where Header and Footer Scripts stands today
Popularidade geral #242 of 77,094 WordPress.org plugins Top 0.31%
100K+ Instala o nível 114 of 328
Próximo nível: mais de 500 mil instalações
Footer #4 of 132 plugins → Head #1 de 31 plugins → Cabeçalho #5 de 138 plugins → Postar #2 of 1,185 plugins → Scripts #1 de 46 plugins →

WordPress.org Classificações de pesquisa

Posição ao vivo na pesquisa de plugins, top 100
Palavra chavePosiçãoPlugins concorrentesCategoria
footer #9 6,141 Best footer plugins →
head #18 3,046 Best head plugins →
header #9 10,000 Best header plugins →
post >100 10,000 Best post plugins →
scripts #3 10,000 Best scripts plugins →

Adoção da versão

Compartilhamento de sites ativos por lançamento.

  • 2.465.6%
  • 2.225.4%
  • 2.18.7%
  • Outros0.28%

Divisão de classificação

★★★★★★★★★★ 4.6 from 58 reviews

  • 5★82.8%
  • 4★1.7%
  • 3★6.9%
  • 2★5.2%
  • 1★3.4%

About Header and Footer Scripts

From the official readme · v2.4.2

Descrição

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:

Instalação

There is nothing special about installation of this plugin. It is as simple as uploading the plugin files to your plugins directory.

Upload the plugin to /wp-content/plugins and activate. OR Search “Header and Footer Scripts” from WP Dashbard --> Plugins --> Add New then hit Install and then activate.

Once the plugin is activated you will see “Header and Footer Scripts” menu item under settings of WordPress dashboard. Also a meta box on Post and Page edit page.

Log de Changes

Upgrade for more functionality and bug fixes.

2.4.2

  • Fix: Resolved critical issue where scripts added to per-post meta box were not saving.
  • Fix: Corrected CodeMirror editor rendering (borders, height) and gutter visibility (line numbers) in meta box.
  • Improvement: Updated English copy throughout the plugin for better clarity and professionalism.
  • New: Added Hindi (hi_IN) translation.
  • New: Included language template (.pot) and translation files.

2.4.1

  • New Feature: Added “Clean on Uninstall” option to allow users to remove all data upon deletion.
  • Fix: Resolved issue where sidebar was not loading on settings page due to deprecated constant.
  • Improvement: Enhanced WPCS compliance with comprehensive DocBlocks and formatting fixes.
  • Improvement: Added strict sanitization to settings authentication to resolve Plugin Check warnings.

2.4.0

  • Internal: Refactored codebase to “Jamify HFS” naming standards (jamify_hfs_ prefix) while maintaining full backward compatibility.
  • New Feature: Added support for wp_body_open hook to insert scripts immediately after body tag.
  • New Feature: Added Syntax Highlighting for script editors in settings page.
  • Improvement: Modernized permission system to use ‘unfiltered_html’ capability.
  • Improvement: Added settings to allow Authors and Contributors to add scripts.
  • Improvement: Added admin notice for backward compatibility migration.

2.3.1

  • Security: Hardened nonce implementation with static action names.
  • Security: Added strict sanitization for access level settings.
  • Security: Improved input validation with isset() checks and wp_unslash().
  • Security: Replaced FILE menu slug to prevent path exposure.
  • Security: Added security warning for privilege delegation.
  • New: Added uninstall.php for clean database removal.
  • Fix: Added proper ABSPATH checks to all files.
  • Improvement: Added phpcs:ignore comments for intentional raw output.

2.3.0

  • Fix: Stored Cross-Site Scripting (XSS) vulnerability.
  • New Feature: Add minimum capability required to add scripts to posts.

2.2.1

  • Updated readme.txt.

Registro de change completo em WordPress.org →

Capturas de tela

Access this page from Dashboard --> Settings --> Header and Footer Scripts
Access this page from Dashboard --> Settings --> Header and Footer Scripts
This box will appear below the compose box on posts and pages. If not please refer to [our docs][4] if it's not there.
This box will appear below the compose box on posts and pages. If not please refer to…

Para desenvolvedores

Este é o seu plugin? Mostre os números.

Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.

Selo de Instalações Ativas Selo de classificação Distintivo de pontuação de saúde

Best Header and Footer Scripts alternatives

All footer plugins →
Alternativas
Classificação Plugin Instalações ativas Classificação Atualizada Saúde
1 Gerenciador de código do rodapé do cabeçalho Gerenciador de código do rodapé do cabeçalho Easily add tracking code snippets, conversion pixels, or other scripts required by third… by DraftPress Team 600K+ ★★★★★★★★★★ 4.9 (309) 5 dias atrás 82
2 Inserir cabeçalhos e rodapés Inserir cabeçalhos e rodapés Include inline javascript, stylesheets, CSS code or anything you want in Header and Footer… por Adnan 200K+ ★★★★★★★★★★ 5 (135) 1 mês atrás 88
3 Cabeça, rodapé e pós injeções Cabeça, rodapé e pós injeções O plug-in de cabeça e rodapé permite adicionar código HTML às seções de cabeça e rodapé do seu… Por Stefano Lissa 200K+ ★★★★★★★★★★ 4.9 (735) 8 meses atrás 53
5 Head & Footer Code Head & Footer Code Easy add site-wide, category and article specific custom code before the closing and , or… by Aleksandar Urošević 100K+ ★★★★★★★★★★ 5 (51) 3 meses atrás 71
6 Remove Footer Credit Remove Footer Credit Remove or change footer credits or any text or HTML without modifying code. por WP Chill 60K+ ★★★★★★★★★★ 4.7 (88) 2 semanas atrás 90
7 Scripts To Footer Scripts To Footer Move your scripts to the footer to help speed up perceived page load times and improve user… by Joshua David Nelson 7K+ ★★★★★★★★★★ 4.7 (37) 4 semanas atrás 88
8 Simple Header Footer HTML Simple Header Footer HTML A simple plugin for injecting HTML into various places in your WordPress theme output. Por Otto Kekäläinen 4K+ ★★★★★★★★★★ 4.7 (9) 6 anos atrás 40
9 Storefront Footer Bar Storefront Footer Bar Add a full width widgetised region above the default Storefront footer widget area. por WooCommerce 3K+ ★★★★★★★★★★ 3.7 (7) 6 anos atrás 35
10 Dynamic Year Block Dynamic Year Block A block that always displays the current year in your footer copyright notice. by Marcio Duarte 2K+ ★★★★★★★★★★ 5 (8) 4 meses atrás 73
11 PRyC WP: Add custom content to post and page (top/bottom) PRyC WP: Add custom content to post and page (top/bottom) Add custom content to post and/or page (top/bottom). You may use text, HTML, Shortcodes and… por Patryk 1K+ ★★★★★★★★★★ 5 (7) 6 meses atrás 67

FAQ

Header and Footer Scripts: quick answers

Respostas diretas, extraídas de dados ao vivo WordPress.org.

Fonte: WordPress.org

Is Header and Footer Scripts free?

Yes. Header and Footer Scripts is free to download and use from the official WordPress.org plugin directory.

Is Header and Footer Scripts safe to use in 2026?

Header and Footer Scripts works, but test it on a staging site before relying on it in 2026. It runs on 200K+ sites, is rated 4.6/5 and was last updated 10 months ago, and scores 51/100 on our health check.

How many websites use Header and Footer Scripts?

Header and Footer Scripts is active on 200K+ WordPress websites and has been downloaded 1,774,912 times since it launched in February 2014. It was downloaded 20,582 times in the last 30 days.

Does Header and Footer Scripts work with WordPress 7.1?

Header and Footer Scripts is officially tested up to WordPress 6.9.12, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does Header and Footer Scripts need?

Header and Footer Scripts requires PHP 5.6 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Header and Footer Scripts last updated?

The latest version, 2.4.2, was released on February 1, 2026 (10 months ago).

Who makes Header and Footer Scripts?

Header and Footer Scripts is developed and maintained by Anand Kumar.

What are the best alternatives to Header and Footer Scripts?

The most popular alternatives to Header and Footer Scripts are Header Footer Code Manager (600K+ installs), Insert Headers And Footers (200K+ installs) and Head, Footer and Post Injec… (200K+ installs).

Alimentado por PageForge

Um modelo e uma planilha. Uma página real para cada pesquisa.

PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.

  • CSV e XLSX, mais Google Sheets em Profissional e Empresarial
  • Seu próprio título, URL, SEO campos e esquema para cada página
  • Funciona com o editor de blocos, Elementor, Divi e Avada
  • Gratuito em WordPress.org, sem cartão de crédito

↑↓ mover↵ abrir