What is the best way to edit the breadcrumb on the search results page? Everything I have tried so far has not worked. Hopefully I am just missing a simple solution but I have not found much information on fixing this issue. Thanks in advance.

Comments

luco’s picture

same here. any help is appreciated.

luco’s picture

@skewright,

I used CSS3 to remove all crumbs after the first like so:

.page-search UL.breadcrumb LI:not(.first).odd, .page-search UL.breadcrumb LI.even {
  display: none;
  visibility: hidden;
}

hope this helps.

cheers,
Luciano

beauvafr’s picture

Are you talking about the idiotic Home»Search»Content»Search breadcrumb in Drupal 7?

Why does Drupal render something like that ?

jaysonjaynes’s picture

Has anyone found a workable solution to this problem? It's the weirdest return for Search.

jaysonjaynes’s picture

Version: 7.x-1.0-alpha1 » 7.x-2.x-dev
Component: Code » Documentation
Priority: Major » Minor
Status: Active » Fixed

Okay, I have found a way to do this. First you have to enable "Use wildcard pattern matching in paths" in the "admin/config/user-interface/custom-breadcrumbs" page. Then you assign a new path crumb in "admin/structure/custom_breadcrumbs/path/add" with a path of "search/*". Then assign to both Title and Path and that gave me Home >> Search. Hope that works for others.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Binu Varghese’s picture

Have posted one such scenario @ https://drupal.org/node/2163373