Support Forum

How to use "icon => sp_ArrowRight.png" sp_BreadCrumbs argument properly

SL slobizman
slobizman
Member

I see on this sp_BreadCrumbs page the following:

icon => sp_ArrowRight.png, Filename for icon displayed

My assumption is that with this argument, I can change the icon that goes to the left of each breadcrumb level with an ArrowRight image.  Is that true?

If it is true, I can’t figure out how to incorporate it with my head.php coding of sp_BreadCrumbs.  Here’s what I have:

sp_BreadCrumbs(‘tagClass=spLeft spBreadCrumbs&tree=0&truncate=40’);

So I tried including the argument in the line like this:

sp_BreadCrumbs(‘tagClass=spLeft spBreadCrumbs&tree=0&truncate=40&icon=sp_ArrowRight.png’);

and it didn’t do anything. Still see the default icon.

What am I missing?

3 Answers

New Answer

MP Mr Papa
Mr Papa
Member

not sure what you are doing…  sp_ArrowRight.png is the default image…  so you would need to change the name to the image file you want to use instead… adding it to the argument list with the same name as the default wont change it…

so add the image you want to use into the theme images folder and then add the name of to the arg… something like

sp_BreadCrumbs(‘tagClass=spLeft spBreadCrumbs&tree=0&truncate=40&icon=myArrowRight.png’);

SL slobizman
slobizman
Member

Got it. Thanks.  Didn’t realize that’s what the name fo the default image was. I should have figured that out.

Also want to say, getting to know your plugin now, and damn, you’ve done a great job! Really liking it.