前言介紹
- 這款 WordPress 外掛「Head, Footer and Post Injections」是 2008-04-06 上架。
- 目前有 300000 個安裝啟用數。
- 上一次更新是 2025-02-20,距離現在已有 71 天。
- 外掛最低要求 WordPress 5.6 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.0 以上。
- 有 728 人給過評分。
- 論壇上目前有 1 個提問,問題解答率 0%
外掛協作開發者
satollo |
外掛標籤
ads | amp | footer | header | analytics |
內容簡介
關於 WordPress SEO 和 Facebook Open Graph:我對 Yoast 的邀請讓我刪除我的外掛非常不滿,但實際上並不需要。
點擊此處了解更多。
頁首和頁尾代碼
為什麼您需要安裝 10 個外掛程式才能添加 Google Analytics、Facebook Pixel、自訂追蹤代碼、Google DFP 代碼、Google Webmaster/Alexa/Bing/Tradedoubler 驗證代碼等等?
透過 Header and Footer 外掛程式,您只需要將服務提供的代碼複製到一個集中管理的地方即可。並且獨立於 WordPress 佈景主題:變更主題不會遺失注入的代碼!
注入點及功能
在頁面區段中,通常添加大部分代碼的位置
在
在頁面底部(在 標籤前)
認識和執行 PHP 代碼,以添加邏輯到您的注入中
區分桌面和行動設備注入
AMP
兼容 AMP 外掛程式的新 AMP 專用區段,讓您可以在 AMP 頁面中注入特定代碼。應該可以與其他 AMP 外掛程式一起使用。
文章頂部和底部的代碼
您需要在文章內容上方或下方注入廣告嗎?沒問題。透過 Header and Footer 外掛程式,您可以:
在文章和頁面的頂部、底部和中間添加代碼
區分桌面和行動設備(您並不在兩者上顯示相同的廣告格式,對吧?)
區分文章和頁面的佈景主題設定
啟用原生 PHP 代碼
啟用短代碼
特殊注入
在打開 BODY 標籤後方
在文章內容中(使用可配置規則)
在模板的任何位置(使用佔位符)
bbPress
特定的 bbPress 注入將被刪除。切換至我的 Ads for bbPress,這個外掛程式更加靈活和完整。
限制
本外掛程式無法更改菜單或頁腳的配置,這些功能必須由您的佈景主題提供!
官方頁面:Header and Footer。
由 Stefano Lissa 開發的其他外掛程式:
Hyper Cache
Newsletter
Include Me
Thumbnails
Ads for bbPress
翻譯
您可以幫助翻譯這個外掛程式成您的語言,請前往 WordPress Translate
隱私和 GDPR
本外掛程式不收集或處理任何個人用戶數據。
原文外掛簡介
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 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, 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.
Other plugins by Stefano Lissa:
Hyper Cache
Newsletter
Include Me
Thumbnails
Ads for bbPress
Translation
You can contribute to translate this plugin in your language on WordPress Translate
Privacy and GDPR
This plugin does not collect or process any personal user data.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Head, Footer and Post Injections」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
3.1.0 | 3.1.1 | 3.1.2 | 3.1.3 | 3.1.4 | 3.1.5 | 3.2.0 | 3.2.1 | 3.2.2 | 3.2.3 | 3.2.4 | 3.2.5 | 3.2.6 | 3.2.7 | 3.2.8 | 3.2.9 | 3.3.0 | 3.3.1 | 3.3.2 | trunk |
延伸相關外掛(你可能也想知道)
WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager 》插入標頭和頁腳 + 完整的 WordPress 代碼片段外掛, WPCode (前稱为 WPBeginner 的 "插入標頭和頁腳")是使用率超过 100 万个网站的 WordPress 代码片段外掛中...。
Header Footer Code Manager 》Header Footer Code Manager by 99 Robots 是一個簡易的介面,可將片段添加到頁面的標頭或頁腳或內容上方或下方。, 優點, , 無需擔心因添加代碼而不小心使網...。
Sticky Header Effects for Elementor 》Sticky Header Effects for Elementor 是一個插件,為 Elementor Pro 2.0 中引入的「sticky」標題特性添加了實用選項。當訪客開始向下滾動頁面時,它為用戶提...。
Insert Headers And Footers 》WP Headers and Footers 外掛程式可以協助您在 WordPress 網站的頁首和頁尾中插入程式碼,例如 Google Analytics 追蹤碼、Facebook 像素碼、Google Optimize ...。
Header and Footer Scripts 》如果您正在運行 WordPress 網站,早晚都需要將某種代碼插入到您的網站上。最有可能的是網頁分析代碼,例如 Google Analytics,或者是社交媒體腳本、某些 CSS ...。
Woody code snippets – Insert Header Footer Code, AdSense Ads 》需要專業的支援嗎?, 免費獲取支援, 開始獲得高級支援, , 停止反覆使用相同的內容!, 停止插入 function.php 中的 PHP 代碼!, 停止將 Google Analytics、Yan...。
Slim SEO – Fast & Automated WordPress SEO Plugin 》ne-click, Robots.txt Editor: edit your robots.txt file easily without any technical knowledge, Backlinks: monitor backlinks and broken links, Autom...。
Nimble Page Builder 》Nimble Page Builder 是什麼?, Nimble Page Builder 是一個針對 WordPress 的快速靈活的頁面建構外掛。Nimble Builder 使用 WordPress 原生、強大的介面以即...。
Unique Headers 》特點, Unique Headers Plugin 從文章/頁面編輯畫面中新增一個自訂標頭圖像框。你可以使用這個框來上傳該文章的獨特標頭圖像,或使用你的 WordPress 媒體庫中...。
SOGO Add Script to Individual Pages Header Footer 》已經在 Gutenberg 上進行測試, 創建一個簡單的方式,為個別頁面、文章或自訂文章類型的標題和頁腳添加 JavaScript 代碼,, 例如: 在感謝頁面上添加轉換代碼, ...。
Oceanwp sticky header 》簡單易用的固定標題安裝, 啟用外掛後,固定標題就會立即開始運作。, 如何停用固定標題?, 您可以從設置頁面中的管理員選單下方的「外掛」中停用外掛。, 是否...。
Head Meta Data 》一款外掛,可通過添加自定義的 標籤到網頁的 部分,提高網頁定義和語義質量。, 基本示例, 在您的網站上顯示任何自定義的 meta 標...。
Easy WP Meta Description 》這個外掛讓使用者為每篇文章、頁面、首頁或自訂文章類型的文章編寫獨立的描述,這些描述會作為 meta 描述加入到 HTML 的 head 中。, 每篇文章或頁面的獨立描...。
WP Display Header 》這個 WordPress 外掛可以讓你針對每個文章、頁面、自訂文章類型,以及封存頁面,選擇個別的標頭圖片,可以從預設的標頭照片和自訂標頭照片中做選擇。, , 外掛...。
WordPress Header Builder Plugin – Pearl 》e Plugins menu in your WordPress dashboard. The Pearl Header Builder plugin allows you to easily create custom headers for your website using the i...。