Title: Head, Footer and Post Injections
Author: Stefano Lissa
Published: <strong>7 آوریل 2008</strong>
Last modified: 28 مارس 2026

---

جستجوی افزونه‌ها

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

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

# Head, Footer and Post Injections

 توسط [Stefano Lissa](https://profiles.wordpress.org/satollo/)

[دانلود](https://downloads.wordpress.org/plugin/header-footer.3.3.6.zip)

 * [جزئیات](https://fa.wordpress.org/plugins/header-footer/#description)
 * [نقد و بررسی‌ها](https://fa.wordpress.org/plugins/header-footer/#reviews)
 * [توسعه](https://fa.wordpress.org/plugins/header-footer/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/header-footer/)

## توضیحات

Why you have to install 10 plugins to add Google Analytics, Facebook Pixel, custom

tracking code, Google DFP code, Google Webmaster/Alexa/Bing/Tradedoubler verification
code and so on…

With Header and Footer plugin you can just copy the code those services give you

in a centralized point to manage them all. And theme independent: you can change
your theme without loosing the code injected!

#### Injection points and features

 * in the page section where most if the codes are usually added
 * just after the tag as required by some JavaScript SDK (like Facebook)
 * in the page footer (just before the tag)
 * recognize and execute PHP code to add logic to your injections
 * distinct desktop and mobile injections

#### AMP

A new AMP dedicated section compatible with [AMP plugin](https://wordpress.org/plugins/amp)
lets you to inject specific codes in
 AMP pages. Should be ok even with other AMP
plugins.

#### Post Top and Bottom Codes

Do you need to inject a banner over the post content or after it? No problem. With
Header and
 Footer you can:

 * Add codes on _top_, _bottom_ and in the _middle_ of posts and pages
 * Differentiate between _mobile_ and _desktop_ (you don’t display the same ad format
   on both, true?)
 * Separate post and page configuration
 * Native PHP code enabled
 * Shortcodes enabled

#### Special Injections

 * Just after the opening BODY tag
 * In the middle of post content (using configurable rules)
 * Everywhere on template (using placeholders)

#### bbPress

The specific bbPress injections are going to be removed. Switch to my
 [Ads for bbPress](https://wordpress.org/ads-bbpress),
which is more flexible and complete.

#### Limits

This plugin cannot change the menu or the footer layout, those features must be 
covered by your theme!

Official page: [Header and Footer](https://www.satollo.net/plugins/header-footer).

Other plugins by Stefano Lissa:

 * [Monitor](https://www.satollo.net/plugins/monitor)
 * [Hyper Cache](https://www.satollo.net/plugins/hyper-cache)
 * [Newsletter](https://www.thenewsletterplugin.com)
 * [Include Me](https://www.satollo.net/plugins/include-me)
 * [Thumbnails](https://www.satollo.net/plugins/thumbnails)
 * [Ads for bbPress](https://wordpress.org/plugins/ads-bbpress/)

#### Translation

You can contribute to translate this plugin in your language on [WordPress Translate](https://translate.wordpress.org)

### Privacy and GDPR

This plugin does not collect or process any personal user data.

## سوالات متداول

FAQs are answered on [Header and Footer](https://www.satollo.net/plugins/header-footer)
page.

## نقد و بررسی‌ها

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

### 󠀁[Best Out there Love IT!!!](https://wordpress.org/support/topic/best-out-there-love-it/)󠁿

 [doug2son](https://profiles.wordpress.org/doug2son/) 21 مارس 2026

This plugin is invaluable… but all of the sudden it’s very hard to find it in the
WordPress plugin search function. I had to go back to another site is was already
installed on, find it and download it. Not showing up anymore in WordPress Plugin
Search.

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

### 󠀁[Works great](https://wordpress.org/support/topic/works-great-9726/)󠁿

 [Alex](https://profiles.wordpress.org/asterix/) 3 دسامبر 2025

Has been my go-to header/footer injection plugin for years, works great and is consistently
updated.

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

### 󠀁[Works perfectly](https://wordpress.org/support/topic/works-perfectly-2893/)󠁿

 [americiu](https://profiles.wordpress.org/americiu/) 22 اکتبر 2025

Works perfectly, simple plugin that gets the job done.

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

### 󠀁[It works well](https://wordpress.org/support/topic/it-works-well-162/)󠁿

 [gleggio](https://profiles.wordpress.org/gleggio/) 9 اکتبر 2025

I’ve been using this a few years and I really appreciate the efficiency of it.

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

### 󠀁[A trusted plugin for quick fixes.](https://wordpress.org/support/topic/a-trusted-plugin-for-quick-fixes/)󠁿

 [rapidnet](https://profiles.wordpress.org/rapidnet/) 4 آگوست 2025

This is a great plugin for when you need something a little less common added to
your site, like a custom cookie function, or even some off the beaten track analytics
etc.

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

### 󠀁[Major Security Issue — Plugin Compromised My Website](https://wordpress.org/support/topic/major-security-issue-plugin-compromised-my-website/)󠁿

 [evamr99](https://profiles.wordpress.org/evamr99/) 12 ژوئن 2025

The plugin was working fine, but suddenly one day it corrupted my website. It started
appearing as dangerous on Google search, with warnings about fraud, and eventually
began showing ads instead of my actual site content. I thought it was malware, so
I restored backups, but the problem persisted. I then decided to deactivate all 
plugins and reactivate them one by one, until I got to this one and realized it 
was the culprit. It gave me a huge scare and cost me a lot of time. I will not be
using this plugin again.

 [ خواندن تمامی 735 نقد و بررسی‌ ](https://wordpress.org/support/plugin/header-footer/reviews/)

## توسعه دهندگان و همکاران

“Head, Footer and Post Injections” نرم افزار متن باز است. افراد زیر در این افزونه
مشارکت کرده‌اند.

مشارکت کنندگان

 *   [ Stefano Lissa ](https://profiles.wordpress.org/satollo/)

“Head, Footer and Post Injections” به 11 زبان ترجمه شده است. با تشکر از [مترجمین](https://translate.wordpress.org/projects/wp-plugins/header-footer/contributors)
برای همکاری و کمک‌هایشان.

[ترجمه “Head, Footer and Post Injections” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/header-footer)

### علاقه‌ مند به توسعه هستید؟

[کد را مرور کنید](https://plugins.trac.wordpress.org/browser/header-footer/)، [مخزن SVN](https://plugins.svn.wordpress.org/header-footer/)
را بررسی کنید، یا از طریق [RSS](https://plugins.trac.wordpress.org/log/header-footer/?limit=100&mode=stop_on_copy&format=rss)
در [گزارش توسعه](https://plugins.trac.wordpress.org/log/header-footer/) مشترک شوید.

## گزارش تغییرات

#### 3.3.6

 * Version number fix

#### 3.3.5

 * Fixed not visible options on the admin side

#### 3.3.4

 * Improved the after “body” tag injection (Markus Sandelin)
 * Not completely removed the page buggering due to the possible use of “generic
   tags” (probably no one use)
 * Fixed a int conversion PHP warning
 * Started an admin page refresh

#### 3.3.3

 * WP 6.9 check
 * PCP Check

#### 3.3.1, 3.3.2

Breaking changes (see below)

 * Disabled by default PHP on multisite installations
 * Added constant HEADER_FOOTER_MULTISITE_ALLOW_PHP to be used on wp-config.php 
   to enable PHP on multisite installations
 * Added constant HEADER_FOOTER_ALLOW_PHP to be used on wp-config.php to enable 
   PHP (true by default for compatibility)

## اطلاعات

 *  نگارش **3.3.6**
 *  آخرین به‌روزرسانی **4 ماه پیش**
 *  نصب‌های فعال **200,000+**
 *  نگارش وردپرس ** 6.1 یا بالاتر **
 *  آزمایش‌شده تا **6.9.5**
 *  نگارش PHP ** 7.0 یا بالاتر **
 *  زبان‌ها
 * [Chinese (China)](https://cn.wordpress.org/plugins/header-footer/)، [Chinese (Taiwan)](https://tw.wordpress.org/plugins/header-footer/)،
   [Dutch](https://nl.wordpress.org/plugins/header-footer/)، [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/header-footer/)،
   [English (Canada)](https://en-ca.wordpress.org/plugins/header-footer/)، [English (UK)](https://en-gb.wordpress.org/plugins/header-footer/)،
   [English (US)](https://wordpress.org/plugins/header-footer/)، [Galician](https://gl.wordpress.org/plugins/header-footer/)،
   [Russian](https://ru.wordpress.org/plugins/header-footer/)، [Spanish (Chile)](https://cl.wordpress.org/plugins/header-footer/)،
   [Spanish (Spain)](https://es.wordpress.org/plugins/header-footer/)، و [Spanish (Venezuela)](https://ve.wordpress.org/plugins/header-footer/).
 *  [به زبان خودتان ترجمه کنید](https://translate.wordpress.org/projects/wp-plugins/header-footer)
 * برچسب
 * [ads](https://fa.wordpress.org/plugins/tags/ads/)[amp](https://fa.wordpress.org/plugins/tags/amp/)
   [analytics](https://fa.wordpress.org/plugins/tags/analytics/)[footer](https://fa.wordpress.org/plugins/tags/footer/)
   [header](https://fa.wordpress.org/plugins/tags/header/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/header-footer/advanced/)

## امتیازها

 4.9 از 5 ستاره.

 *  [  امتیاز 711 5-ستاره     ](https://wordpress.org/support/plugin/header-footer/reviews/?filter=5)
 *  [  امتیاز 13 4-ستاره     ](https://wordpress.org/support/plugin/header-footer/reviews/?filter=4)
 *  [  امتیاز 4 3-ستاره     ](https://wordpress.org/support/plugin/header-footer/reviews/?filter=3)
 *  [  امتیاز 1 2-ستاره     ](https://wordpress.org/support/plugin/header-footer/reviews/?filter=2)
 *  [  امتیاز 6 1-ستاره     ](https://wordpress.org/support/plugin/header-footer/reviews/?filter=1)

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

[مشاهده همه بررسی‌ها](https://wordpress.org/support/plugin/header-footer/reviews/)

## مشارکت کنندگان

 *   [ Stefano Lissa ](https://profiles.wordpress.org/satollo/)

## پشتیبانی

مشکلات حل شده در دو ماه گذشته:

     0 از 1

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/header-footer/)

## کمک مالی

آیا تمایل دارید از پیشرفت این افزونه حمایت کنید؟

 [ کمک مالی به این افزونه ](https://www.paypal.com/donate/?hosted_button_id=5PHGDGNHAYLJ8)