cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to move main navigation into header next to logo

SOLVED

Trying to move main navigation into header next to logo

Hi,

I'm using Magento 2.1 and trying to move my main horizontal navigation menu up so that instead of appearing below the logo it appears alongside it, inside the header.

 

So I tried editing /httpdocs/vendor/magento/module-theme/view/frontend/layout/default.xml and did some digging around to find out what code to add.

 

I added this code:

 

<move element="navigation.sections" destination="header.container" after="logo" />

Inside <referenceContainer name="header.container">, just before the closing </referenceContainer> tag.

 

I then uploaded the default.xml and cleared the Magento cache in the back end. But it hasn't done anything at all. I'm sure I'm missing something obvious here- can someone point me in the right direction?

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Trying to move main navigation into header next to logo

Anyone know how I can do this please?

View solution in original post

1 REPLY 1

Re: Trying to move main navigation into header next to logo

Anyone know how I can do this please?