How Can I move Search bar section in Navigation div Magento2 using XML.
I have used below code but it's not working:
<move element="top.search" destination="catalog.topnav" before="-"/>
Any one have idea for how to move search bar in Navigation div?
Best Answer
Add the following line into
yourtheme/layout/default.xml
Copy
sections.phtml
frommodule-theme/view/frontend/templates/html/sections.phtml
toyourtheme/templates/html/sections.phtml
Now open this file and put the following line of code after
class="section-items"
DIVThis is working for me.