Breadcrumb NavXT
Truncating Length of Anchors (2 posts)

  1. Kricir
    Posted 2 years ago #

    I apologize if this is a repeat question for you, but is there a way to truncate the number of anchors displaying.

    Some of my pages go four/five levels deep. Is there a way to make it only show to last two or three and then have it preceded by '...'?

    For Example:
    Home > Entertainment > Upcoming Events > Carlos


    ... > Upcoming Events > Carlos

    Thank you for your help.


  2. John Havlik
    Plugin Author

    Posted 2 years ago #

    Depending on what you want to do styling wise (have it completely gone or expand to the full trail when hovered over), there are two ways of doing this.

    1) Use CSS (and CSS3 selectors such as nth-child) to disable the display of the content and prepend the &hellep; entity to the trail. Then on hover you can repeal that style.

    2) Use PHP, hooking into the bcn_after_fill action you have access to the bcn_breadcrumb_trail object, within it you can modify the members within the trail member array.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic