[WordPress] 外掛分享: byakurai template filter

首頁外掛目錄 › byakurai template filter
10+
安裝啟用
尚無評分
1145 天前
最後更新
問題解決
WordPress 5.6+ PHP 7.0+ v1.0.4 上架:2023-01-18

內容簡介

「byakurai template filter」是 Byakurai 主題的附加外掛。此外掛會自動為每個模板創建一個編輯頁面。當您編輯此模板頁面內容時,編輯後的內容將代替主題原始模板部分的內容。

如何使用

當您編輯與每個模板對應的頁面,例如頁首或頁腳時,內容文字將出現在相應的位置。
例如,如果是頁首,頁面標題為 byakuraitmp_heder,請編輯該頁面。
如果在 byakuraitmp 之後有非定位字元,例如 single,則意味著該模板僅顯示於該頁面類型。
例如,如果您將頂部頁面改為某個頁面,並編輯名為 byakuraitmp_front_header 的頁面,則只有在頂部頁面上,byakuraitmp_front_header 的內容才會顯示,而不是 byakuraitmp_header 的內容。
如果您想在多個模板顯示同一內容,請使用可重複使用區塊。管理可重複使用區塊的菜單也將添加到管理員頁面中。

常見問題

即使頁面被保存為草稿,模板的頁面也會顯示在主頁適當的位置。

開發者團隊

⬇ 下載最新版 (v1.0.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「byakurai template filter」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

byakurai template filter is an add-on for the theme byakurai. This plugin automatically creates a page for editing each template. When you edit the body of the page for this template, the edited body is inserted instead of the original template parts of the theme.
How to use
When you edit a page corresponding to each template, such as the header or footer, the body text will appear in the corresponding position.
For example, if it is a header, a page titled byakuraitmp_heder is generated, so please edit that page.
If there is a non-positional character, such as single, after the byakuraitmp, it means that the template will only be displayed for that page type.
For example, if you have changed the top page to a page, and you edit the page titled byakuraitmp_front_header, the body of the byakuraitmp_front_header will be displayed on the top page only instead of the body of the byakuraitmp_header.
If you want to display the same content in multiple templates, please use reusable blocks. A menu will also be added to the admin page that allows you to manage reusable blocks.
Frequently asked question
The page for the template will appear in the appropriate section of the home page even if it is saved as a draft.

延伸相關外掛

文章
Filter
Mastodon