Title: Header and Footer Scripts
Author: Anand Kumar
Published: <strong>20 de Febrero de  2014</strong>
Last modified: 1 de Febrero de  2026

---

Buscar plugins

![](https://ps.w.org/header-and-footer-scripts/assets/banner-772x250.png?rev=1799457)

![](https://ps.w.org/header-and-footer-scripts/assets/icon-256x256.png?rev=1799457)

# Header and Footer Scripts

 Por [Anand Kumar](https://profiles.wordpress.org/anand_kumar/)

[Descargar](https://downloads.wordpress.org/plugin/header-and-footer-scripts.2.4.2.zip)

 * [Detalles](https://cl.wordpress.org/plugins/header-and-footer-scripts/#description)
 * [Reseñas](https://cl.wordpress.org/plugins/header-and-footer-scripts/#reviews)
 *  [Instalación](https://cl.wordpress.org/plugins/header-and-footer-scripts/#installation)
 * [Desarrollo](https://cl.wordpress.org/plugins/header-and-footer-scripts/#developers)

 [Soporte](https://wordpress.org/support/plugin/header-and-footer-scripts/)

## Descripción

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.

No olvides envolver tu código con las etiquetas adecuadas.

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

O para CSS:

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

#### Por qué usar este 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.
 * Insertar código en tipos de contenido personalizado [nueva característica].

El plugin debería ser compatible con WooCommerce.

#### Lo que no ofrece

 * No puedes insertar o ejecutar códigos PHP.

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.

#### Enlaces importantes

For further information you are welcomed to follow these links:

 * **[Read Documentation](https://github.com/anandkumar/header-and-footer-scripts/wiki)**
 * **[Get Support](https://wordpress.org/support/plugin/header-and-footer-scripts/)**
 * **[Repositorio de GitHub](https://github.com/anandkumar/header-and-footer-scripts)**

## Capturas de pantalla

 * [[
 * Accede a esta página desde el `Escritorio --> Ajustes --> Header and Footer Scripts`
 * [[
 * Esta caja aparecerá debajo de la caja de redacción en las entradas y páginas.
   Si no es así, por favor, consulta [nuestros documentos] [4] si no está allí.

## Instalación

No hay nada especial sobre la instalación de este plugin. Es tan simple como cargar
los archivos del plugin en tu directorio de plugins.

Sube el plugin a `/wp-content/plugins` y actívalo o busca “Header and Footer Scripts”
desde el `Escritorio --> Plugins --> Agregar nuevo `, luego pulsa “Instalar” y después“
Activar”.

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.

## FAQ

### P. ¿Cómo puedo acceder al soporte y solucionar problemas?

A. I couldn’t handle wp.org forums on regular basis. You are suggested to visit 
[GitHub Wiki](https://github.com/anandkumar/header-and-footer-scripts/wiki) for 
more updated plugin documentation and troubleshoot your problem.

### P: ¿Hay disponible alguna versión de pago del plugin?

R. No, no hay ninguna. Si necesitas alguna característica, envíanos tus comentarios
o una solicitud de característica.

## Reseñas

![](https://secure.gravatar.com/avatar/8e2e5030c8a5ed23c37fbb475fcfe59a13b59d6d620cd729ff9c47cf2a61f6ca?
s=60&d=retro&r=g)

### 󠀁[It’s okay… SAVE validation missing](https://wordpress.org/support/topic/its-okay-save-validation-missing/)󠁿

 [Yume](https://profiles.wordpress.org/yumeconsults/) 1 de Marzo de 2026

Add a validation confirmation on save. Simple.No one can tell that it’s saved.

![](https://secure.gravatar.com/avatar/d3dd540a0898da02ce637949f3979d1bf018947533001019d3785b9ded307f7d?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin](https://wordpress.org/support/topic/excellent-plugin-9797/)󠁿

 [leaderotmane](https://profiles.wordpress.org/leaderotmane/) 1 de Febrero de 2026

One of the most useful plugins. I was looking for a plugin that allows adding Metadata.
Then I founs this, and it is very useful. Thanks a lot for your efforts guys. P.
S. Thank you for the last update. It corrects some errors.

![](https://secure.gravatar.com/avatar/05a02d5d76874ec1d7e2d5e6e5bf9c9b1577b00b87e8ef8b7965c29bf4b5806b?
s=60&d=retro&r=g)

### 󠀁[Saved my bacon](https://wordpress.org/support/topic/saved-my-bacon-53/)󠁿

 [DB](https://profiles.wordpress.org/destructiveburn/) 20 de Julio de 2025

I’ve recently switched themes, and my previous theme allowed me to add custom CSS
directly from the page editor. Unfortunately, my new theme lacks this feature. This
plugin appears to be the only one that restores that functionality, enabling me 
to inject CSS specifically for individual pages. While other plugins offer global
injection, which is certainly useful, I find that for unique pages like the homepage
or special types, it’s essential to have the ability to add targeted styles without
affecting the rest of the site. This plugin is a great solution for that!P.S. No
bacon was saved during or after this message. Nom nom nom. lol.

![](https://secure.gravatar.com/avatar/b9084f815f68f82a55a214e46c22fbe84d83ade32322c42f4b86fe00bf339545?
s=60&d=retro&r=g)

### 󠀁[Very Good](https://wordpress.org/support/topic/very-good-7263/)󠁿

 [weegleshops](https://profiles.wordpress.org/weegleshops/) 31 de Marzo de 2024

Awesome application works very well

![](https://secure.gravatar.com/avatar/415b427365f071c1b094466108a198c70d8e80791215ab75708452fe6f6db39d?
s=60&d=retro&r=g)

### 󠀁[Very Helpful](https://wordpress.org/support/topic/very-helpful-1381/)󠁿

 [Rizwan Ahmed](https://profiles.wordpress.org/pakquotes21/) 29 de Septiembre de
2023

If I could give more than 5 stars, I would. This plugin is a must-have for anyone
running a WordPress site. It’s made my life so much easier.

![](https://secure.gravatar.com/avatar/ac81eaa02ecae8df4edc1a1811b3a6508f1b31e729f9808ddbf7c66eee9ec27e?
s=60&d=retro&r=g)

### 󠀁[Very useful plugin](https://wordpress.org/support/topic/very-useful-plugin-1405/)󠁿

 [shashwathi](https://profiles.wordpress.org/shashwathi/) 20 de Enero de 2023

Very useful plugin

 [ Leer los 58 comentarios ](https://wordpress.org/support/plugin/header-and-footer-scripts/reviews/)

## Colaboradores & Desarrolladores

“Header and Footer Scripts” es software de código abierto. Las siguientes personas
han contribuido a este plugin.

Colaboradores

 *   [ Anand Kumar ](https://profiles.wordpress.org/anand_kumar/)
 *   [ jamify ](https://profiles.wordpress.org/jamify/)

“Header and Footer Scripts” ha sido traducido en 12 idiomas. Gracias a [los traductores](https://translate.wordpress.org/projects/wp-plugins/header-and-footer-scripts/contributors)
por sus contribuciones.

[Traduce “Header and Footer Scripts” a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/header-and-footer-scripts)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/header-and-footer-scripts/),
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/header-and-footer-scripts/),
o suscríbete al [registro de desarrollo](https://plugins.trac.wordpress.org/log/header-and-footer-scripts/)
por [RSS](https://plugins.trac.wordpress.org/log/header-and-footer-scripts/?limit=100&mode=stop_on_copy&format=rss).

## Historial de cambios

#### 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.

#### 2.2.0

 * Nueva característica: Ahora, se da prioridad al script en todo el sitio.
 * Corrección: Fuente Monoscript para el área de texto.
 * Mejorado el archivo “readme.txt”.
 * Volver a PHP v5.6, ya que mucha gente no puede actualizar a la última versión.

#### 2.1.1

 * Corregido un error que hacía que los scripts de tipo de publicación individual
   aparecieran en archivos.
 * Comprobación de compatibilidad con WordPress 5.2.2
 * Ahora se requiere al menos PHP v7.0.

#### 2.1.0

 * Compatibilidad con tipo de contenido personalizado (CPT).
 * Mejorado el archivo “Léeme”

#### 2.0.1

 * Estilo de código uniforme.
 * Mejoradas las cadenas de traducción.
 * Corregidos enlaces
 * Limpieza de código

#### 2.0.0

 * Mejoras visuales.
 * Mejor estructura de directorios.

#### 1.3.4

 * Corregido aviso de variable no definida

#### 1.3.3

 * Comienza a usar la construcción de estilo PHP5

#### 1.3.2

 * Corregido un problema con HTTPS

#### 1.1.0

 * Hecho para el repositorio oficial de WordPress
 * Agregado caja meta de script en la cabecera de las entradas individuales
 * Correcciones de fallos menores

#### 1.0.0

 * Versión pública inicial

## Meta

 *  Versión **2.4.2**
 *  Última actualización **hace 4 meses**
 *  Instalaciones activas **200,000+**
 *  Versión de WordPress ** 4.6 o superior **
 *  Probado hasta **6.9.4**
 *  Versión de PHP ** 5.6 o superior **
 *  Idiomas
 * [Dutch](https://nl.wordpress.org/plugins/header-and-footer-scripts/), [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/header-and-footer-scripts/),
   [English (UK)](https://en-gb.wordpress.org/plugins/header-and-footer-scripts/),
   [English (US)](https://wordpress.org/plugins/header-and-footer-scripts/), [French (France)](https://fr.wordpress.org/plugins/header-and-footer-scripts/),
   [Galician](https://gl.wordpress.org/plugins/header-and-footer-scripts/), [Russian](https://ru.wordpress.org/plugins/header-and-footer-scripts/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/header-and-footer-scripts/),
   [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/header-and-footer-scripts/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/header-and-footer-scripts/),
   [Spanish (Venezuela)](https://ve.wordpress.org/plugins/header-and-footer-scripts/),
   [Swedish](https://sv.wordpress.org/plugins/header-and-footer-scripts/), y [Ukrainian](https://uk.wordpress.org/plugins/header-and-footer-scripts/).
 *  [Traducir a tu idioma](https://translate.wordpress.org/projects/wp-plugins/header-and-footer-scripts)
 * Etiquetas
 * [footer](https://cl.wordpress.org/plugins/tags/footer/)[head](https://cl.wordpress.org/plugins/tags/head/)
   [header](https://cl.wordpress.org/plugins/tags/header/)[post](https://cl.wordpress.org/plugins/tags/post/)
   [scripts](https://cl.wordpress.org/plugins/tags/scripts/)
 *  [Vista Avanzada](https://cl.wordpress.org/plugins/header-and-footer-scripts/advanced/)

## Calificaciones

 4.6 de 5 estrellas.

 *  [  48 valoraciones de 5 estrellas     ](https://wordpress.org/support/plugin/header-and-footer-scripts/reviews/?filter=5)
 *  [  1 valoración de 4 estrellas     ](https://wordpress.org/support/plugin/header-and-footer-scripts/reviews/?filter=4)
 *  [  4 valoraciones de 3 estrellas     ](https://wordpress.org/support/plugin/header-and-footer-scripts/reviews/?filter=3)
 *  [  3 valoraciones de 2 estrellas     ](https://wordpress.org/support/plugin/header-and-footer-scripts/reviews/?filter=2)
 *  [  2 valoraciones de 1 estrellas     ](https://wordpress.org/support/plugin/header-and-footer-scripts/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/header-and-footer-scripts/reviews/#new-post)

[Ver todas las reseñas](https://wordpress.org/support/plugin/header-and-footer-scripts/reviews/)

## Colaboradores

 *   [ Anand Kumar ](https://profiles.wordpress.org/anand_kumar/)
 *   [ jamify ](https://profiles.wordpress.org/jamify/)

## Soporte

Problemas resueltos en los últimos dos meses:

     0 de 1

 [Ver el foro de soporte](https://wordpress.org/support/plugin/header-and-footer-scripts/)

## Donar

¿Te gustaría apoyar el avance de este plugin?

 [ Donar para este plugin ](https://github.com/anandkumar/header-and-footer-scripts)