Breadcrumb NavXT
Hide current single-post title at the end of Breadcrumb NavXT trail? (3 posts)

  1. Franklyn Monk
    Posted 4 years ago #

    Hello mtekk and Breadcrumb NavXT users,

    Is there a way to not display the current item in a trail?
    For example in Home > Category > SubCategory > Post Title
    I want to get rid of (or hide) "> Post Title"

    I've been going through the options and searching online, but I'm not coming up with anything. Weird thing is I think I've done it before.



  2. John Havlik
    Plugin Author

    Posted 4 years ago #

    Never has been an option, and is not planned to be one either. Removing the current item violates several rules for locational breadcrumb trails (should always display the full path). In most cases the perceived need to remove the current item is stemmed by poor spatial separation between the page title and the breadcrumb trail.

    That said, there are ways of removing the current item, the smartest way is to hook into the 'bcn_after_fill' action, and remove the first entry (at index 0) in the passed in argument's trail array.

  3. Franklyn Monk
    Posted 4 years ago #

    Ah, indeed! I am suffering from poor spatial separation… I didn't realize there's best-practices regarding trails.

    I'll reconsider my site to see if I can incorporate standard breadcrumbs before I hack out the current item.

    Thanks for the info, it's very useful!
    (Also, thanks for the wonderful plugin!)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Breadcrumb NavXT
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic