Skip to main content
added image
Source Link
Madn3ss795
  • 60
  • 1
  • 10

I want to move search box to the right side of category lists on top navigation menu.:

enter image description here

I've added the following line in Magento_Theme/layout/default.xml which moved search box to the desired position ( image above is the result ) :

<move element="top.search" destination="catalog.topnav" before="-" />

However, when I click on the box to insert text the cursor jumps out of focus immediately, and I can't press on the magnifier icon either. But if I right click into the box -> paste data there and press Enter or magnifier icon, search functionsfunction still work.

What else do I need to add to my code to make it work, or is there another solution?

I want to move search box to the right side of category lists on top navigation menu. I've added the following line in Magento_Theme/layout/default.xml which moved search box to the desired position:

<move element="top.search" destination="catalog.topnav" before="-" />

However, when I click on the box to insert text the cursor jumps out of focus immediately, and I can't press on the magnifier icon either. But if I right click into the box -> paste data there and press Enter, search functions still work.

What else do I need to add to my code to make it work, or is there another solution?

I want to move search box to the right side of category lists on top navigation menu:

enter image description here

I've added the following line in Magento_Theme/layout/default.xml which moved search box to the desired position ( image above is the result ) :

<move element="top.search" destination="catalog.topnav" before="-" />

However, when I click on the box to insert text the cursor jumps out of focus immediately. But if I right click into the box -> paste data there and press Enter or magnifier icon, search function still work.

What else do I need to add to my code to make it work, or is there another solution?

I want to move search boxmove search box to the right side of category listsright side of category lists on top navigation menu. I've added the following line in Magento_Theme/layout/default.xmlMagento_Theme/layout/default.xml which moved search box to the desired position:

<move element="top.search" destination="catalog.topnav" before="-" />

However, when I click on the box to insert text the cursor jumps out of focus immediately, and I can't press on the magnifier icon either. But if I right click into the box -> paste dataright click into the box -> paste data there and press Enter or magnifier icon, search functions still work.

What else do I need to add to my code to make it work, or is there another solution?

I want to move search box to the right side of category lists on top navigation menu. I've added the following line in Magento_Theme/layout/default.xml which moved search box to the desired position:

<move element="top.search" destination="catalog.topnav" before="-" />

However, when I click on the box to insert text the cursor jumps out of focus immediately. But if I right click into the box -> paste data there and press Enter or magnifier icon, search functions still work.

What else do I need to add to my code to make it work, or is there another solution?

I want to move search box to the right side of category lists on top navigation menu. I've added the following line in Magento_Theme/layout/default.xml which moved search box to the desired position:

<move element="top.search" destination="catalog.topnav" before="-" />

However, when I click on the box to insert text the cursor jumps out of focus immediately, and I can't press on the magnifier icon either. But if I right click into the box -> paste data there and press Enter, search functions still work.

What else do I need to add to my code to make it work, or is there another solution?

Source Link
Madn3ss795
  • 60
  • 1
  • 10

Magento 2 - moving search box to Navigation area

I want to move search box to the right side of category lists on top navigation menu. I've added the following line in Magento_Theme/layout/default.xml which moved search box to the desired position:

<move element="top.search" destination="catalog.topnav" before="-" />

However, when I click on the box to insert text the cursor jumps out of focus immediately. But if I right click into the box -> paste data there and press Enter or magnifier icon, search functions still work.

What else do I need to add to my code to make it work, or is there another solution?