Jump to content

Remove current page from breadcrumb?


Kirill N

Recommended Posts

Posted

For example, when I have...

Home > Forum > Subforum > Topic Title (current page)

...is it possible to remove the current page? I suppose it's doable by editing the "breadcrumb" template but I'm not sure what exactly to delete there. Any ideas? Thanks!

Posted

Add to custom.css:

.ipsSubNavigation li:not(.ipsMenu_item):not(.ipsMenu_sep):last-child,
.ipsSubNavigation li:nth-last-child(2) .fa.fa-angle-right {
    visibility: hidden;
}

Now the problem with this method is that it will always remove the current page's breadcrumb. So there will be no breadcrumb on the home page. That's what you want, however? If so, this is better than editing templates.

Posted

Add to custom.css:

.ipsSubNavigation li:not(.ipsMenu_item):not(.ipsMenu_sep):last-child,
.ipsSubNavigation li:nth-last-child(2) .fa.fa-angle-right {
    visibility: hidden;
}

Now the problem with this method is that it will always remove the current page's breadcrumb. So there will be no breadcrumb on the home page. That's what you want, however? If so, this is better than editing templates.

This exactly what I wanted, thank you so much. 

One thing though... this also removes the "More" dropdown menu with Activity Stream, Staff. etc. Any idea why?

Posted

Managed to fix that by editing your code to:

.ipsBreadcrumb > ul > li:last-child, li:nth-last-child(2) .fa.fa-angle-right {
    visibility:hidden;
}

Thnkas once again!

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...