So if I’m deep in the architecture of my site, then a breadcrumb is obviously helpful. But if i’m at the top, I still get a breadcrumb, with one item in it that isn’t linked. It looks redundant. I would like to remove the breadcrumb if there’s only one page in the heierarchy. Is this possible?
That’s to remove it from the home page, though. My question is whether to show the breadcrumb if the page has no parent. However, using the method in the FAQ, but replacing !is_front_page() with $post->post_parent does the trick.
The only time you would have only a single breadcrumb in a trail is at the home page, unless you have the include blog/home breadcrumb option unchecked. Thus, I had assumed you were talking about the home page (AFAIK few people actually remove the home/blog breadcrumb from their breadcrumb trails).
What I meant was that I don’t show the breadcrumb when you’re at Home, or when you’re at Home > About, or anything like that. I only show it when you’re one level deeper than that: Home > About > History.
Anyway, thanks for the help, and for the excellent plugin.
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘hide breadcrumb when you're at the root/top’ is closed to new replies.