Support » Plugin: Breadcrumb NavXT » Truncating Length of Anchors

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

Viewing 1 replies (of 1 total)
  • Plugin Author John Havlik


    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.

Viewing 1 replies (of 1 total)
  • The topic ‘Truncating Length of Anchors’ is closed to new replies.