0

I am trying to extend the Header (logo, search box and cart), but those files are the different location. I don't know how to adjust those. Could you please suggest me on this. enter image description here

2
  • What you mean by extending the header? where you want to keep the search box? please share the screenshots so that it will be more visible to us. Mar 1, 2018 at 6:49
  • i want to change the position of search box to the center of the page can u help me Mar 1, 2018 at 7:01

2 Answers 2

0
In your Custom/Theme/Magento_Theme/layout/default.xml                                         


<move element="top.search" destination="header.panel" before="minicart" />
8
  • <move element="top.search" destination="header.panel" before="minicart" /> Mar 1, 2018 at 7:07
  • i didnt find this command Mar 1, 2018 at 7:07
  • You have to add in your default.xml file
    – aravind
    Mar 1, 2018 at 7:25
  • sorry no change sir Mar 1, 2018 at 7:34
  • <move element="top.search" destination="header-wrapper" before="minicart" />
    – aravind
    Mar 1, 2018 at 8:34
1

You can use margin-right in CSS as 35% or according to your need.

In your custom LESS File, Put this below Code :

.block-search{ margin-right: 35%; }

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.