大家好!本篇為最佳化廣告配置設定教學,將說明若網站無工程師協助編輯主題檔案,該如何用外掛設置廣告定位標籤。
目錄
網站的文章內置在哪裡?
文章內置位於文章頁,文章標題下方開始用<div class="Zi_ad_ar_iR">
包覆至文章結束處用 </div>
,所以要放置在主題檔案的站長,必須將文章內容完整包覆起來!
![](https://www.breaktime.com.tw/wp-content/uploads/2022/07/1658119037-d2d0f8a2748a2dcb257c30792342d645.png)
安裝外掛 Head, Footer and Post Injections
請在安裝外掛頁搜尋『Head, Footer and Post Injections』,選擇立即安裝並啟用。
![](https://www.breaktime.com.tw/wp-content/uploads/2022/07/1658119088-225ed3aff98f00b462d43b8e509d3b5b-1024x487.png)
或至外掛頁下載:
WordPress.org Taiwan 正體中文
![](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
![](https://ps.w.org/header-footer/assets/banner-772x250.png?rev=1064202)
Head, Footer and Post Injections
Head, Footer and Post Injections 外掛能讓網站管理員將 WordPress 可接受的程式碼加入至網站文章頁面、文章內容等的 head、footer 標籤區段及其他位置。
廣告定位標籤設定步驟
STEP
至 Header and Footer 設定頁
設定 >> Header and Footer。
![](https://www.breaktime.com.tw/wp-content/uploads/2022/07/1658119235-ed36387972456cb6e8141b236f7421c8-1024x468.png)
STEP
選則『文章』,貼上定位代碼
文章內置開頭:<div class="Zi_ad_ar_iR">
文章內置結尾:</div>
![](https://www.breaktime.com.tw/wp-content/uploads/2022/07/1658119639-fef6794fcbd1c62f7b7ed9487517edec-1024x649.png)
STEP
打勾『套用至行動版』
按下儲存。
![](https://www.breaktime.com.tw/wp-content/uploads/2022/07/1658119874-5bb3accc3a7bbff423c192bfab2c15a3-1024x649.png)
![](https://www.breaktime.com.tw/wp-content/uploads/2022/06/1654655937-c51ec747fd66ffdce480f0acd6eaf213-150x150.png)
本次教學就到這邊,我們下次見!