I am working on a Magento 2.1.7 shop. To achieve this, I have created a child-theme of Magento Blank.
I have installed and enabled the Magento 2.0 SmartSearch and I want to display the search bar, which currently does not display anywhere, above the top links, like the screenshot indicates:
In app/code/Sebwite/SmartSearch/view/frontend/layout/default.xml
I have added this line <move element="top.search" destination="header-wrapper" before="top.links"/>
:
<referenceContainer name="header-wrapper">
<referenceBlock name="top.search">
<arguments>
<argument name="template" xsi:type="string">Sebwite/SmartSeach/templates/form.mini.phtml</argument>
</arguments>
</referenceBlock>
</referenceContainer>
<move element="top.search" destination="header-wrapper" before="top.links"/>
But no change occurred.
Inside the same file, the logo blook looks like this:
<referenceContainer name="header.container" htmlId="siteHeader" htmlClass="panel wrapper fullwidth">
<container name="header-wrapper" label="Page Header" as="header-wrapper" htmlTag="div" htmlClass="header content">
<block class="Magento\Theme\Block\Html\Header\Logo" name="logo">
<arguments>
<argument name="logo_file" xsi:type="string">images/logo.png</argument>
<argument name="logo_img_width" xsi:type="number">263</argument>
<argument name="logo_img_height" xsi:type="number">85</argument>
</arguments>
</block>
</container>
</referenceContainer>
Is there anything I can add to it to display the search box, who's template is app/code/Sebwite/SmartSearch/view/frontend/templates/form.mini.phtml
inside the logo block? I would then only have to float it right.