WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Franklyn Monk
    Member
    Posted 1 year 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.

    Thanks

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

  2. John Havlik
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic