Is there a way to change the title of the breadcrumb link for all items in the breadcrumb? I would like to use a “short name” for the breadcrumb items vs the longer page title.
Here is why. I have the following example page hierarchy; the page titles are “complete” for better human UX and SEO:
– Animals
– Furry Animals
– Dog
This would yield the following breadcrumb trail:
Home / Animals / Furry Animals / Dog
But I would like:
Home / Animals / Furry / Dog
I can use Yoast to change the HTML title, and in the menu I can rename the menu item to use a shortner name. However I havent found a clean way to change search results which use the page name. I really dont want to have to create a child theme. Seems simpler to to just change the breadcrumb logic.
Hey ctadlock,
Thank you for your patience, I assume that you mean changing the PHP files when you say change the breadcrumb logic but the problem with that is you would want to use a child theme so your customization would not be lost after the next update, but you don’t seem to want to do that. Did you see the Enfold child theme that is included with the most recent full theme download?
If you did decide to use a child theme it seems that you would want to trim the breadcrumbs after the spaces so / Furry Animals / becomes / Furry / but unfortunately I don’t believe that I can achieve this in PHP, but perhaps I could in javascript. The best way to achieve this would be to use the Say What plugin and have it do a string replace of the few breadcrumbs that you would want to change, there probably are only a few right?
Best regards,
Mike