首頁 ›
外掛目錄 › Hansel & Gretel: Fine-Tuned Breadcrumb Generator
WordPress 3.1.0+ v0.0.5 上架:2012-08-05
內容簡介
完整文檔和最新更新
在 GitHub 上關注我們!
我在哪裡?
不說不行:麵包屑是當今網站的重要部分。它們為您的訪問者提供了一個直觀的階層結構,並允許用戶通過您的網站回溯(希望)找到更多內容。WordPress 簡化了網站的結構,但是要為所有不同類型的文章、頁面、分類、檔案和...生成面包屑,需要更多的努力。您懂的。
但是已經有外掛了,是嗎?
當然!對於簡單的階層結構,它們中的許多外掛表現良好,但是它們中的許多在某些方面效果不佳:
想使用新的語義化的 <nav> 元素吗?
不好意思,它們只有 <p> 或 <ul>。
需要控制麵包屑的類或 ID 吗?
是的,不好意思,它們的包裹器有一個固定的 class 為 breadcrumbs...我希望這就是您所需要的。
那自定義分類呢?
您已經知道問題的答案...
自訂文章類型呢?
最好希望它們是分層的!
我應該提到豐富片段/微數據吗?
我還沒有找到一個外掛。
好吧,但是您認為您的插件有何優勢?
顯然(考慮到前一節),此插件旨在解決現有麵包屑外掛環境的所有自定義問題,同時仍然使其盡可能易於使用(閱讀:HAG_Breadcrumbs();,完成!)。就是這麼簡單。希望它能達到您的期望!
特點
以下功能目前可供使用,除非另有指定。
簡單安裝
上傳外掛,通過 WordPress 管理員激活,然後在模板中放置函數即可在您想要出現麵包屑的位置。完成!
細調控制
H&G 可立即投入使用,但通常我們需要自定義控制。幾乎可以更改麵包屑呈現的每個方面,就像可用的許多選項一樣。
微數據集成
H&G 默認包含一個網頁麵包屑的微數據格式,這是由Bing、Google、Yahoo! 和 Yandex聯合支持。
完整的標記控制
選擇任何元素來包裝您的麵包屑,包括可選的 class(es) 或 ID 屬性。同樣地,您可以在包裝器元素標籤中包含前綴和後綴內容以進一步控制。
使用模板層次結構呈現
H&G 利用WordPress模板層次結構來決定要呈現哪些麵包屑(在自定義文章類型中自動處理!)。
外掛標籤
開發者團隊
⬇ 下載最新版 (v0.0.5) 或搜尋安裝
① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」 ② 後台搜尋「Hansel & Gretel: Fine-Tuned Breadcrumb Generator 」→ 直接安裝(推薦)
原文外掛簡介
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.
延伸相關外掛