
內容簡介
在任何 WordPress 主題中自定義「頁面不存在」的內容可能不太容易,通常需要編輯 404.php 模板檔案。Genesis Framework已將頁面的預設內容抽象為一個函數,並且此外掛可以取消綁定該函數,並用您自己的自訂標題和內容替換。
使用 [genesis-404-search] 快捷鍵將搜尋表單添加到該頁面。
如果您想要動態列出內容(例如:最新文章),我建議您安裝 Display Posts Shortcode,並將其用於 404 頁面內的內容。
外掛標籤
開發者團隊
原文外掛簡介
Customizing the contents of the Page Not Found page in any WordPress theme can be tricky, and usually involes editing the 404.php template file. The Genesis Framework already abstracts the default content of the page into a function, and this plugin can unhook that and replace it with your own custom title and content.
Use [genesis-404-search] shortcode to add a search form to the page.
If you’d like to dynamically list content (ex: most recent posts), I recommend you install the Display Posts Shortcode and use it in the 404 page’s content.
