How to Enable Mega Menu in SharePoint Online?

Requirement: Enable the mega menu in SharePoint Online.

How to Enable Mega Menu in SharePoint Online?

Mega menus are a type of drop-down menu that display a large, organized list of links and options. They are a great way to help users navigate complex websites and can improve the overall user experience. In this tutorial, we will guide you through the process of enabling mega menus 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

#Parameters
$SiteURL = "https://crescent.sharepoint.com"

#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
$Ctx.Load($Web)
$ctx.ExecuteQuery()

#Enable Megamenu experience
$Web.MegaMenuEnabled = $True
$Web.Update()
$Ctx.ExecuteQuery()

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

#Parameters
$SiteURL = "https://crescent.sharepoint.com"

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

#Enable Mega menu
$Web = Get-PnPWeb
$Web.MegaMenuEnabled = $True
$Web.Update()
Invoke-PnPQuery

Here is the SharePoint Online mega menu in action!

how to enable mega menu in sharepoint online

In conclusion, mega menus are a useful feature that can greatly improve navigation and user experience on a SharePoint site. By following the steps outlined in this tutorial, you should now be able to easily enable mega menus on your SharePoint Online site. With the help of mega menus, your users will be able to more easily find the information they are looking for and navigate your site.

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

Leave a Reply

Your email address will not be published. Required fields are marked *