How to Enable Mega Menu in SharePoint Online?

Requirement: Enable the mega menu in SharePoint Online

How to Enable Mega Menu in SharePoint Online?

In SharePoint Online communication sites, you can enable the mega menu to improve user experience in the site navigation. To enable the mega menu, follow these steps:

  1. Navigate to your SharePoint Online site >> Click on Settings gear >> Click on the “Change the look” link. 
  2. Select “Navigation” >> Choose “Mega Menu” 
    sharepoint online mega menu
  3. Click on the Save button.

SharePoint Online: Enable Mega Menu using PowerShell

Run this PowerShell script to enable the mega menu for a site collection:

Import-Module Microsoft.Online.SharePoint.Powershell -DisableNameChecking

$SiteURL = ""

#Setup Credentials to connect
$Cred = Get-Credential
#Setup the context
$Ctx = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL)
$Ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Cred.UserName,$Cred.Password)

#Get the Web
$Web = $Ctx.Web

#Enable Megamenu experience
$Web.MegaMenuEnabled = $True

To disable the Mega menu, just set the flat “MegaMenuEnabled” to $False! You can also turn-ON mega menu using PnP PowerShell:

$SiteURL = ""

#Connect to PnP Online
Connect-PnPOnline -Url $SiteURL -Interactive

#Enable Mega menu
$Web = Get-PnPWeb
$Web.MegaMenuEnabled = $True

Here is the SharePoint Online mega menu in action!

how to enable mega menu in sharepoint online

Salaudeen Rajack

Salaudeen Rajack - SharePoint Expert with Two decades of SharePoint Experience. Love to Share my knowledge and experience with the SharePoint community, through real-time articles!

Leave a Reply

Your email address will not be published.