Customising Breadcrumb NavXT

The plugin is working fine (thanks to them) but I'd like to customise it slightly. For example the following example trail is the default: Home > Report > July-2016 > Article

'Article' is not linked as we are already on that post/page. I would a) like to remove 'Article' from the trail as this is anyway the title of the post/page that sits just below the breadcrumb on my site b) potentially (just to see how it looks) replace 'Article' with a static text such as '> You are here' with its own class

Clearly I could just write a rule for 'level 4' but I may have other breadcrumbs with 2 to 5 levels... Modifying with css rule .breadcrumb a:last-child has been unsuccessful. Any tips how to achieve? I also asked on wp forum, but they have thousands of unloved questions, it seems. I will add the solution there if we get one here.

Of-course you may a solution that requires only a change in the wp permalink structure, but I haven't managed to do that. Many thanks, Bill

Topic theme-twenty-sixteen breadcrumb Wordpress

Category Web


For option a, see the Breadcrumb NavXT FAQ.

For option b, since there isn't an all encompassing "current item breadcrumb template", you have two options:

Since all the unlinked breadcrumb templates are used for the current item, just replace the %title% and %htitle% tags with 'You are here'.
Write a filter for the bcn_breadcrumb_title hook, check for the current item and programatically change it to 'You are here'.

John HavliK

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.