Change Breadcrumb so that Current Page is Not a Link

Posted by Community Admin on 04-Aug-2018 15:16

Change Breadcrumb so that Current Page is Not a Link

All Replies

Posted by Community Admin on 17-Apr-2013 00:00

Does anyone know how to change the Breadcrumb template so that the current page is not a link?  It should just be text.  I noticed that even on the Sitefinity web site that the last link in the breadcrumb is a link to the current page.  It should just be text with no hyperlink.  I understand that there may be some SEO value in have more links but I have customer that expect to see another page.

Is there a JQuery solution or can something be done to the widget template?

Thanks,
Matt 

Posted by Community Admin on 18-Apr-2013 00:00

Add this to the breadcrumb template and the last link will be replaced with a span:
<script type="text/javascript">
$(".sfNoBreadcrumbNavigation a").replaceWith(function()
return $("<span>" + $(this).html() + "</span>");
)
</script>

Posted by Community Admin on 19-Apr-2013 00:00

Thank you.

This thread is closed