Quickest Way to Change Magento 2 Menu Default – Magento 2 Mega Menu – Landofcoder

In this Blog, we will show you “The Quickest Way to Change Magento 2 Menu Default” – one of our wonderful series of Magento 2 Mega Menu – Landofcoder

Please 3 following steps:

  • Create File
  • Add Code .XML
  • Clear Cache

1. Create File :

app/design/THEME_VENDOR/THEME/Ves_Megamenu/layout/default.xml

2. Add Code .XML :

Add these below code into your file content & Change YOUR_MENU_ALIAS_HERE to a menu alias that you want to show

<?xml version=”1.0″?>
<page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”>
<body>
<referenceBlock name=”store.menu”>
<block class=”Ves\Megamenu\Block\Menu” name=”catalog.topnav” template=”Ves_Megamenu::topmenu.phtml” ttl=”3600″>
<arguments>
<argument name=”alias” xsi:type=”string”>YOUR_MENU_ALIAS_HERE</argument>
</arguments>
</block>
</referenceBlock>
</body>
</page>

When you’ve done this, you can clear cache:

3. Clear Cache when Completely Change Magento 2 Menu Default.

Then Clear Cache: System -> Cache Management -> Select All -> Submit

Congratulation! You’ve completely “Change The Default Menu Magento 2 Quickly”.

Magento 2 Mega Menu Tutorials

Some other extensions you maybe interested in

Related Posts

Nhu Quynh

Recent Posts

15+ Must-have Magento 2 Free Extensions To Supercharge Your Store In 2025 | Latest updates

Magento 2 is an incredibly flexible and powerful eCommerce platform that can be tailored to…

6 days ago

Black Friday 2024: Hot Deals Collection For Magento 2

Black Friday and Cyber Monday – BFCM 2024 are nearly around the corner, and it’s…

1 week ago

What To Consider While Using Magento 2.0 For Your Streaming App?

When it comes to e-Commerce platforms, undoubtedly Magento 2.0 grabs the spotlight. Magento might not…

1 week ago

Landofcoder BFCM 2024: Biggest Sale Of The Year – 30% OFF All Magento 2 Extensions

The holiday shopping season is here, and there’s no better time to supercharge your Magento…

1 week ago

Top 10 Progressive Web App Development Companies To Elevate Your Business

In today’s digital landscape, the rapid evolution of advanced web applications, particularly Progressive Web Apps…

2 weeks ago

Why Your Retail Business Needs Big Data eCommerce In 2025?

As eCommerce booms, big data eCommerce will be all about providing insight into how to…

2 weeks ago