I am working on a Magento 2.1.7 shop. To achieve this, I have created a child-theme of Magento Blank.
I have moved the top links at the right of the logo:
<move element="top.links" destination="header-wrapper" after="logo" />
I want to display the search bar (it does not display anywhere) above the top links (like the screenshot indicates).
For this purpose, I wrote the line below, in my
<move element="top.search" destination="header-wrapper" before="links" />
The result is that the search bar not only does not display above the top links but it does not display at all.
There is alse a
app/design/frontend/Company_Name/Theme_Name/Magento_Search/layout/default.xml file with this code:
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <move element="top.search" destination="navbar-collapse" after="navigation.sections" /> <referenceBlock name="advanced-search-link" remove="true" /> </body> </page>
As you can see, on the website's homepage, the search box does not appear anywhere.
- What am I doing wrong?
- Could the search feature be disabled from admin?
- Can I display the search bar inside the top links