Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I was wondering is there a way to change the separator in the breadcrumbs from > ? I'm trying to apply a custom style to the breadcrumbs (which by the way, is proving to be a nightmare due to the code already forced onto them, even changing the padding/height is seemingly impossible!) but I'd like to use an image as > instead of the current > tag that's there right.

I've looked through numerous pages of code, including the master page, and cannot find a solution. It's also randomly placed in a span, just like every other item of the breadcrumbs, so it's not possible to just style it out either.

Any help would be fantastic, thank you!

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You can specify any html to replace default character. Simplest approach is to specify pathseparator property in the SiteMapPath control in your custom master page. Alternatively, you can also specify a template for the separator. Check this http://asp-net-example.blogspot.com/2009/04/how-to-use-path-separator-template-in.html

share|improve this answer
    
Wow, that's perfect, thank you! I was looking for something to change, as opposed to something to actually add-in to over-ride the default value. Now have <asp:SiteMapPath PathSeparator="" runat="server"/> and it works perfectly, thank you again! –  xn dx Oct 11 '11 at 17:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.