[WordPress] 外掛分享: Head, Footer and Post Injections

首頁外掛目錄 › Head, Footer and Post Injections
WordPress 外掛 Head, Footer and Post Injections 的封面圖片
300,000+
安裝啟用
★★★★
4.9/5 分(734 則評價)
40 天前
最後更新
0%
問題解決
WordPress 6.1+ PHP 7.0+ v3.3.3 上架:2008-04-06

內容簡介

關於 WordPress SEO 和 Facebook Open Graph:我對 Yoast 的邀請讓我刪除我的外掛非常不滿,但實際上並不需要。
點擊此處了解更多。

頁首和頁尾代碼

為什麼您需要安裝 10 個外掛程式才能添加 Google Analytics、Facebook Pixel、自訂追蹤代碼、Google DFP 代碼、Google Webmaster/Alexa/Bing/Tradedoubler 驗證代碼等等?

透過 Header and Footer 外掛程式,您只需要將服務提供的代碼複製到一個集中管理的地方即可。並且獨立於 WordPress 佈景主題:變更主題不會遺失注入的代碼!

注入點及功能

在頁面區段中,通常添加大部分代碼的位置
在 <head> 標籤後方,需要一些 JavaScript SDK(如 Facebook)時使用
在頁面底部(在 </body> 標籤前)
認識和執行 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

本外掛程式不收集或處理任何個人用戶數據。

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.3.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Head, Footer and Post Injections」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon