Disable or remove crumb(s)
Disable one of the crumbs (link elements)
Disable first crumb
Mark the first crumb as disabled by setting the aria-disabled
attribute to true
.
To prevent clicking on it you can do something like this:
Disable last crumb
You can to the same with the last crumb.
Disable specific crumb
You can also disable a specific crumb by setting the aria-disabled
attribute to true
.
Targets the second link item
Remove one of the crumbs (link elements)
Instead of adding an attribute to disable the crumb, you can remove it from the list of crumbs. Therefore, you can use the special key remove
in the customizeListElements
array.
Remove first crumb
Set the index
to 0
and the remove
key to true
.
Remove last crumb
With the index
set to last
and the remove
key to true
, you can remove the last crumb.
You can do the same with excludeCurrentPage
.
Remove specific crumb
You can also remove a specific crumb by setting the index
to the index of the crumb you want to remove.