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.
-
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.– Kalyan Chakravarthi VMar 1, 2018 at 6:49
-
i want to change the position of search box to the center of the page can u help me– Dattatraya PullavarthiMar 1, 2018 at 7:01
Add a comment
|
2 Answers
In your Custom/Theme/Magento_Theme/layout/default.xml
<move element="top.search" destination="header.panel" before="minicart" />
-
<move element="top.search" destination="header.panel" before="minicart" /> Mar 1, 2018 at 7:07
-
-
-
-
<move element="top.search" destination="header-wrapper" before="minicart" />– aravindMar 1, 2018 at 8:34
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%; }