Yes, thank you, I’m good for now
Support Forum
Jakob Smith said
Well, the current code in sp-common-view-functions.php places the breadcrumb icon HTML inside the links, so any replacement will also be put there.My solution for now is:
1) Remove the images from the breadcrumb with the filter (slightly adjusted):
function BreadCrumb_Divider_Replace ($breadCrumbs) { $icon_replace_with = ""; $breadCrumbs = preg_replace('/<img[^>]+>/i', $icon_replace_with, $breadCrumbs); return $breadCrumbs; } add_filter('sph_BreadCrumbs', 'BreadCrumb_Divider_Replace');
2) Edit lines 1238, 1255, 1265, 1274 and 1280 of sp-common-view-functions.php, placing the → HTML entities in the link code there.
I know 2 is not upgrade-safe, but it’s an okay solution for now. After an upgrade it would not take long to correct the code.
Still, I would appreciate the possibility to add the arrows as a divider-argument in sp_BreadCrumbs().
I’ve had to go back to this problem, because my edits in 2) above was overwritten without my knowledge on a clients site.
Referring to the above, has there been any change over the past 11 months which makes it possible for me to put in a divider, which doesn’t become part of the links in the breadcrumb?
I have looked here without any luck:
http://codex.simple-press.com/codex/api/template-functions-and-the-api/display-template-functions/common-view/sp_breadcrumbs/
You should be able to turn off the icon images and add text to be shown instead.
I have not tested but would try something like this.
sp_BreadCrumbs(‘tagClass=spLeft spBreadCrumbs&tree=1&homeIcon=&icon=&;iconText=→’, __sp(‘Home’));
I tried something very close to that, but my problem is that the right arrow becomes part of the link, like in my old post and that doesn’t look good when you are displaying breadcrumbs inline.
I would really like the possibility of doing the breadcrumb like this, without editing core files:
Home → Breadcrumb → Breadcrumb
Now, with the above code, I’m getting this:
first, I can say I dont believe there has been any changes recently to the breadcrumbs…
your topic is a good year old and sorry, but dont remember it… did a search of our tickets but didnt see one applicable to that for 5.3 or in our future, open tickets…
so would have to do some research to see… judging by the earlier posts, its probably still an issue… will open a ticket immediately so we can research and look into… sorry if we dropped the ball there…