Currently, I have this code in my default.xml
<referenceContainer name="page.top">
<block class="Magento\Framework\View\Element\Template" name="top.search" as="topSearch" template="Magento_Search::form.mini.phtml"/>
</referenceContainer>
I'd like to move the search bar within the <nav>
inside topmenu.html
but I'm unsure of how to do that.
I tried <?php echo $this->getChildHtml('topSearch') ?>
but that doesn't work.
Please help.
Best Answer
You have to add search block inside navigation block.