前言介紹
外掛協作開發者
rodaine | taylor_cnp |
外掛標籤
crumb | hierarchy | microdata | breadcrumb | breadcrumbs |
內容簡介
完整文檔和最新更新
在 GitHub 上關注我們!
我在哪裡?
不說不行:麵包屑是當今網站的重要部分。它們為您的訪問者提供了一個直觀的階層結構,並允許用戶通過您的網站回溯(希望)找到更多內容。WordPress 簡化了網站的結構,但是要為所有不同類型的文章、頁面、分類、檔案和...生成面包屑,需要更多的努力。您懂的。
但是已經有外掛了,是嗎?
當然!對於簡單的階層結構,它們中的許多外掛表現良好,但是它們中的許多在某些方面效果不佳:
想使用新的語義化的 元素吗?
不好意思,它們只有 或
需要控制麵包屑的類或 ID 吗?
是的,不好意思,它們的包裹器有一個固定的 class 為 breadcrumbs...我希望這就是您所需要的。
那自定義分類呢?
您已經知道問題的答案...
自訂文章類型呢?
最好希望它們是分層的!
我應該提到豐富片段/微數據吗?
我還沒有找到一個外掛。
好吧,但是您認為您的插件有何優勢?
顯然(考慮到前一節),此插件旨在解決現有麵包屑外掛環境的所有自定義問題,同時仍然使其盡可能易於使用(閱讀:HAG_Breadcrumbs();,完成!)。就是這麼簡單。希望它能達到您的期望!
特點
以下功能目前可供使用,除非另有指定。
簡單安裝
上傳外掛,通過 WordPress 管理員激活,然後在模板中放置函數即可在您想要出現麵包屑的位置。完成!
細調控制
H&G 可立即投入使用,但通常我們需要自定義控制。幾乎可以更改麵包屑呈現的每個方面,就像可用的許多選項一樣。
微數據集成
H&G 默認包含一個網頁麵包屑的微數據格式,這是由Bing、Google、Yahoo! 和 Yandex聯合支持。
完整的標記控制
選擇任何元素來包裝您的麵包屑,包括可選的 class(es) 或 ID 屬性。同樣地,您可以在包裝器元素標籤中包含前綴和後綴內容以進一步控制。
使用模板層次結構呈現
H&G 利用WordPress模板層次結構來決定要呈現哪些麵包屑(在自定義文章類型中自動處理!)。
原文外掛簡介
For Full Documentation & The Latest Updates
Watch us on GitHub!
Where The Heck Am I?
Let’s face it: breadcrumbs are an integral part of websites these days. They give an immediate sense of hierarchy to your visitors and allow users to backtrack through your site to (hopefully) find more content. WordPress simplifies structuring sites how ever it seems reasonable, but it takes a bit more effort to generate breadcrumbs for all the different types of posts, and pages, and taxonomies, and archives, and … you get the idea.
But there are already plugins for that, aren’t there?
Sure! And a lot of them work really well for simple sites with simple hierarchies, but many of them fall short in one way or the other:
Want to use the new semantic
element?
Nope sorry, all they have are
‘s or
‘s.
Need to control the classes or IDs of the crumbs?
Yep, nope; their wrapper has a fixed class of breadcrumbs though…I hope that’s all you need.
Uh…okay what about custom taxonomies?
You already know the answer to this question…
And custom post types?
Better hope they’re hierarchical!
Should I even bother mentioning rich snippets/microdata?
Haven’t found one yet.
Okay fine, but what makes you think yours is any better?
It might be obvious (considering the previous section) that this plugin seeks to address all the customizability problems with the existing breadcrumb plugin environment while still keeping it as easy to use as possible (read: HAG_Breadcrumbs();, done!). It’s as simple as that. Hopefully it can live up to your expectations!
Features
The following features are currently available unless otherwise specifed.
Simple Installation
Upload the plugin, activate via the WordPress admin, and drop the function where you want the breadcrumbs to appear in your template. Done!
Fine-Tuned Control
H&G works right out of the box, but oftentimes we want custom control. Nearly every aspect of the breadcrumbs rendering can be changed a’la the myriad of options available.
Microdata Integration
H&G by default includes the microdata format for a WebPage’s breadcrumbs, a format that is jointly supported by Bing, Google, Yahoo! and Yandex.
Full Markup Control
Choose any element to wrap your breadcrumbs, including optional class(es) or ID attributes. Likewise, you can include prefix and suffix content right inside the wrapper element tags for further control.
Template Hierarchy Based Rendering
H&G utilizes the WordPress Template Hierarchy to determine which crumbs to show, including that elusive Comments Popup Window everybody (read: nobody) uses! This means, regardless of your theme, Hansel & Gretel will follow WP’s lead about the content on the page.
Custom Post Types & Taxonomies
Never worry about how breadcrumbs behave across your fancy new post types and taxonomies. H&G accounts for hierarchical and non-hierarchical types, whether or not they have an archive page, and also provides options to override breadcrumb display for individual post types if desired.
Home & Last Crumbs
H&G allows full control in showing home breadcrumbs and even allows for customized Front Page versus Blog Home Page templates. Likewise, the last, current page crumb has equal control depending on the needs of your theme.
Made for Theme Developers
Hansel and Gretel was made by theme developers for theme developers. The default options and degree of customizability were all considered by our team of experienced WP developers to make sense right out of the box, with as little further customization as possible. Give it a try and let us know what you think. We all want H&G to be the simplest and smartest breadcrumb plugin you’ll ever use! To contribute to the development of this plugin, fork our repo over on GitHub.
各版本下載點
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
最新版本
延伸相關外掛(你可能也想知道)
Advanced Sidebar Menu 》完全自動側邊欄菜單。, 使用您的頁面或分類的父子關係,根據您網站的目前部分生成菜單。將頁面或分類指定為父級,這將為您完成其它所有操作。, 保持菜單乾淨...。
Admin Menu Tree Page View 》這個 WordPress 外掛:「Admin Menu Tree Page View」,可以在管理員選單中加入一棵頁面樹。這樣一來,您無論在管理區域中的任何位置,只要點擊一下就可以看...。
Category Checklist Tree 》在文章編輯畫面中,儲存文章後,您會發現被勾選的類別顯示在頂部,破壞了分類層次結構。此外,此外掛還會自動滾動到第一個被勾選的類別。, 可以與自訂分類一...。
Categories in Hierarchical Order 》Gutenberg 編輯器已經在選擇分類時維護了父子關係。因此,子類別不會出現在分類元框的頂部。因此,如果您正在使用 Gutenberg 編輯器,則不需要此外掛。, 「分...。
Preserve Taxonomy Hierarchy 》這個外掛可以禁用導覽選單列表的分頁,並保留分類的階層結構。, 此外,當您使用 WooCommerce 且擁有超過 50 個分類項目時,也可以協助您。, 此外,它還可以保...。
Better Section Navigation 》新增一種 Widget 型別,您可以在側邊欄區域 (和/或其他地方) 部署這個 Widget,以顯示基於區段的導覽列,同時可以排除顯示某些頁面。, Widget 標題是當前區段...。
Collapsible Categories in the Dashboard 》必須使用經典編輯器外掛 - 這是我對古騰堡的抱怨清單之一,因為它使用 REST API 來顯示分類,對用戶來說無法為分類框添加任何東西,從而使 wp_terms_checklis...。
Intuitive Category Checklist 》Intuitive Category Checklist 外掛可使在擁有大量類別和子類別的網站中更輕鬆地選擇分類。此外掛在快速編輯模式和完整文章模式下均可以使用。, 相關鏈結:外...。
F4 Post Tree 》F4 Post Tree為您的文章和/或頁面後台添加了一個整潔且易於使用的側邊欄樹狀視圖。, 啟用後,您的帖子/頁面將在樹狀側欄中按階層顯示。, 側邊欄出現在WordPre...。
Taxonomy Checklist Tree 》, 分類種類樹狀檢查清單, 捐贈, WordPress 外掛, 。
Pages Order 》透過此外掛,您可以重新排列文章頁面之順序,並改變它們的階層關係。, 此外,您可以將這個階層結構加入您的網站頁面中,以方便瀏覽者進行導覽。, 多站點 - Wo...。
Add Hierarchy (parent) to post 》[✅ 由 Puvox 提供的安全插件]:, , • 為了提高安全性,修訂並且不再存在易受攻擊的漏洞。, • 不會使網站讀取變慢,使用效率高。, • 不會收集私人資料。,...。
Which Template Am I 》該外掛會在頁面底部顯示目前頁面使用的 WordPress 範本名稱。只有當您登入時,才會在前端顯示。在找到需要調整的範本後,只需停用外掛即可。, 使用方法, 啟用...。
WenderHost Subpages Widget 》一個顯示子頁面連結清單的小工具。不論您在層次架構中身處何處,清單都保持一致。, 其他功能包括:, , 小工具僅會在含有子頁面的頁面或子頁面上顯示。, 清單標...。
Subpage Listing 》Subpage Listing 可以充分利用 WordPress Pages 的層級結構,生成其下(子頁面)頁面的導航樹。, 例如,假設您有一個名為「Parent」的父頁面。現在,假設您有...。