I have moved the advance search form on home page with the custom template as:

  <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout  /etc/page_configuration.xsd">
     <referenceContainer name="page.wrapper">
        <block class="Magento\CatalogSearch\Block\Advanced\Form" name="catalogsearch_advanced_form"

Now issue is whenever i visit an page from home page the breadcrumb always includes the advance search in it like this: enter image description here

How this can be fixed? so it can show what page user on in the breadcrumb?

  • Which XML file did you edit?
    – Ben Crook
    Apr 26, 2021 at 15:28
  • default.xml from parent theme Apr 27, 2021 at 7:13

1 Answer 1


Solved this By Overriding the Block Magento\CatalogSearch\Block\Advanced\Form and return the parent like this:

public function _prepareLayout() {
    return \Magento\Framework\View\Element\Template::_prepareLayout();

So actually in the module they have returned the custom Breadcrumb structure that we dont required in this case.

Hopefully it will help for someone else out there too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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