WordPress.org

Ready to get started?Download WordPress

Forums

Breadcrumb NavXT
Truncating Length of Anchors (2 posts)

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

    to

    ... > Upcoming Events > Carlos

    Thank you for your help.

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

  2. John Havlik
    Member
    Plugin Author

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

About this Topic