How to Enable Mega Menu in SharePoint Online?

Requirement: Enable mega menu in SharePoint Online

How to Enable Mega Menu in SharePoint Online?
In SharePoint Online communication sites, you can enable mega menu to improve user experience in the site navigation. To enable mega menu, follow these steps:
  • Navigate to your SharePoint Online site >> Click on Settings gear >> Click on "Change the look" link. 
  • Select "Navigation" >> Choose "Mega Menu" 
    sharepoint online mega menu
  • Click on Save button.

SharePoint Online: Enable Mega Menu using PowerShell
Run this PowerShell script to enable 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 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 -UseWebLogin

#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

No comments:

Please Login and comment to get your questions answered!

Powered by Blogger.