0

I want to move the search bar from right to the center of the homepage using xml.enter image description here

0
 <move element="block.search" destination="header-wrapper" after="logo" />

We have to add this in default.xml file

and then change the css accordingly, after that it will work fine.

  • <move element="block.search" destination="header-wrapper" after="logo" /> – Zaid Nov 13 '17 at 4:53
-3

Add this in css file,

.block-search{

         float:left

         }
  • We have to do it using xml. – Zaid Nov 10 '17 at 6:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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