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

How To Prevent Data Breaches Risks In Integration And Third-Party Apps | 2025 Updated

Due to the ever-increasing reliance of businesses on third-party apps and integrations to complete processes…

1 day ago

Best Website Design Practices For Restaurants | 2025 Updated

Your website is a visual representation of your restaurant. It acts as a welcome mat…

1 day ago

Custom SaaS Development vs. No-Code Platforms: The Ultimate Guide to Making the Right Choice in 2025

The availability of no-code tools has made software development more accessible than ever before. Businesses…

2 days ago

How To Get More Organic Traffic? Best 5 Tips For Your E-Commerce Website

Starting an e-commerce brand is not always a matter of building a powerful product. Your…

2 days ago

Generative AI for E-Commerce Business: Powerful Trends You Can’t Ignore in 2025

Generative artificial intelligence (AI) represents an exciting new frontier in technology with huge potential to…

2 days ago

4 Powerful Ways AI Meeting Managers Help Teams Organized and on Track

Without proper organization, meetings can become a drain on productivity, leading to missed deadlines, forgotten…

3 days ago