+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Change Breadcrumb so that Current Page is Not a Link

Change Breadcrumb so that Current Page is Not a Link

3 posts, 0 answered
  1. Matt
    Matt avatar
    35 posts
    Registered:
    01 Nov 2010
    17 Apr 2013
    Link to this post
    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 
  2. Bilyana
    Bilyana avatar
    1 posts
    Registered:
    27 Jul 2012
    18 Apr 2013 in reply to Matt
    Link to this post
    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>
  3. Matt
    Matt avatar
    35 posts
    Registered:
    01 Nov 2010
    19 Apr 2013
    Link to this post
    Thank you.
3 posts, 0 answered