WordPress.org

Ready to get started?Download WordPress

Forums

Breadcrumb NavXT
[resolved] hide breadcrumb when you're at the root/top (5 posts)

  1. publicradio
    Member
    Posted 1 year ago #

    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?

    http://wordpress.org/extend/plugins/breadcrumb-navxt/

  2. John Havlik
    Member
    Plugin Author

    Posted 1 year ago #

  3. publicradio
    Member
    Posted 1 year ago #

    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.

  4. John Havlik
    Member
    Plugin Author

    Posted 1 year ago #

    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).

  5. publicradio
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic