Requirement: Change Header layout, Site Logo, and Background settings in SharePoint Online.
How to Set Header layout, Site Logo, and Background in SharePoint Online?
Are you looking to change up the look of your SharePoint Online site? Here’s how to change the header layout, site logo, and background.
To change the header settings in SharePoint Online, follow these steps:
- Click on the “Settings” gear icon >> Click on “Change the look” from the site settings menu.
- Click on “Header”
- Set the header layout, site logo, and header background.
- Click on “Save” to commit your changes.
PowerShell to Set Header layout, Site Logo, and Background:
Let’s change the SharePoint Online header layout, header background color, and header logo using PowerShell.
#Set Variables $SiteURL = "https://crescent.sharepoint.com/sites/credit" $LogoURL= "https://crescent.sharepoint.com/sites/credit/SiteAssets/logo.jpg" #Connect to PnP Online Connect-PnPOnline -Url $SiteURL -Interactive #Get the Web $Web = Get-PnPWeb #Set Header Options $Web.HeaderLayout = "Standard" # Standard, Compact $Web.HeaderEmphasis = "None" # None, Neutral, Soft, Strong $Web.SiteLogoUrl = $LogoURL $Web.Update() Invoke-PnPQuery
Please note, on group connected modern sites, changing the logo is bit different. Refer How to Change Site Logo in SharePoint Online?