Magento – Remove Default header and create new one with menu and search bar

blocksheadermagento2menusearch

I created a new block with HTML and CSS from Admin Panel in Magento 2.2.5.

I want to display this block as a header of my store, so I want the method to remove or hide the default header and also how to add the Menu and Search bar to my new header block.

Magento 2.2.5 Luma Theme.

Thanks!

Best Answer

You just have to put the content of your new header in your current theme, Magento will take it first (Magento Fallback system), you don't need to remove it.

your header content will be in :

app/design/frontend/{Vendor}/{theme}/Magento_Theme/templates/html/header.phtml
Related Topic