Whenever you browse the OOTB site collection, you will see the most popular SharePoint logo on the top left bar. Now most companies want to change that to their own text and also want to place a logo on that Suite Bar.
With the release of SharePoint 2016, Microsoft Introduced new PowerShell cmdlets which will set these things in a couple of lines.
I will walk through the steps to change the text, and also, to place a logo on the page.
Scenario
In this example, I will use the Central admin web app and change the text from SharePoint to Central Admin (Dev) along with the navigation URL and also image.
Let’s start the process. Make sure to log in to the SharePoint server with a farm admin account.
To View
To view the current suite bar’s text, let’s run the basics first and see what value returns.
$webapp = Get-SPWebApplication "http://ca.krossfarm.com"
$webapp.SuiteNavBrandingText
The output for this will be “SharePoint”
To Change
Please start SharePoint PowerShell (Run as Administrator) with your farm admin account.
Run the below command to change text to Central Admin (Dev)
$webapp = Get-SPWebApplication "http://ca.krossfarm.com"
$webapp.SuiteNavBrandingText = "Central Admin (Dev)"
$webapp.Update()
After refreshing the page, you will see it like this.
To Set the Logo
A new improvement is, that if we want to set our company logo (BTW it will display in the middle of the top suite bar) you need to upload the logo in the SharePoint site. You can link to it using a URL from other sites, but I would upload it in a Central Admin shared Library and link it from there.
Start the PowerShell console and run the below commands.
$webapp.SuiteNavBrandingLogoUrl = "http://ca.krossfarm.com1/Shared%20Documents/leaf-and-flames-logo.jpg"
$webapp.SuiteNavBrandingLogoTitle = "KrossFarm"
$webapp.SuiteNavBrandingLogoNavigationUrl = "http://ca.krossfarm.com"
$webapp.Update()
- LogoURL is the URL of the Logo
- Logo Title Text
- Navigation URL
After Refreshing the Page, you will see output something like this.
This will conclude the session, in this article, we learned how can we change the Suite Bar’s Text with the help of the PowerShell command. We covered the following commands in this article.
- SuiteNavBrandingText
- SuiteNavBrandingLogoUrl
- SuiteNavBrandingLogoTitle
- SuiteNavBrandingLogoNavigationUrl