How to override category menu?

by Amit Biswas   Last Updated August 02, 2018 06:09 AM

I am new to Magento extension development. Trying to override the main menu (Category menu) in my custom module. enter image description here I have tried this in my custom module.

<?xml version="1.0"?>
<page layout="3columns" xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <update handle="default_head_blocks"/>
      <referenceBlock name="navigation.sections" remove="true"/>
      <referenceContainer name="">
          <block class="Magento\Framework\View\Element\Template" name="customNavigation.sections" before="-" template="Test_Module::customSections.phtml"/>

I disabled the cache and activate the developer mode. But unable to override. enter image description here

Please help, Thanks in advance.

Related Questions

How to disable navigation menu link

Updated June 09, 2015 12:04 PM

Why the following error occurs?

Updated February 01, 2018 11:09 AM

How to create Mega Menu in magento

Updated June 10, 2016 09:03 AM

Allow Custom menu for user role

Updated February 15, 2018 11:09 AM