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

The Ultimate Guide to Magento 2 AI Search: Transform Your B2B Product Discovery

Magento 2 AI is transforming how B2B buyers search and discover products online. Every day,…

2 days ago

WooCommerce Measurement Price Calculator: Smart Pricing Made Easy in 2025

Ever felt like your online store is losing sales just because your pricing doesn’t fit…

2 weeks ago

The Ultimate SEO Outsourcing Strategy for 2025: Scale Your Business Smarter

You’ve probably heard the phrase ‘Just outsource it’ around the business circles like a life-saving…

2 weeks ago

PrestaShop Auction Module for Better Sales and Customer Engagement 2025

Customers on the internet aren't content with static product descriptions and once-off price lists. A…

2 weeks ago

7 Powerful Benefits of DevOps for Mobile App Development Beginners Should Know

In today’s fast-paced digital landscape, delivering mobile apps that are fast, reliable, and secure is…

2 weeks ago

9 Proven Tips for a Smooth and Successful eCommerce Store Migration

Your online store is growing, but your platform isn't. That slow checkout process, those missing…

2 weeks ago