About Me

My photo
Muthupet, TamilNadu, India
SharePoint 2010

Thursday, July 25, 2013

Change “SharePoint” Text in Top Left to Company Logo


By now you have noticed the “SharePoint” text in the top left corner on SharePoint 2013. What if you would like to replace this with your own text, or better yet a clickable image of your company logo? Once again PowerShell is here to help you. Note that this is a Web Application level change and will affect all sites within the Web Application.

Here is our starting point

Steps to change

Open the SharePoint 2013 Management Shell and let’s look at the default setting:
1
2
$webApp = Get-SPWebApplication http://intranet.orion.com
$webApp.SuiteBarBrandingElementHtml
You can see that it’s simply taking in HTML to render the text. So, here is the HTML that I’ll use to display our company logo linked to the root Site Collection:
1
2
3
$webApp = Get-SPWebApplication http://intranet.orion.com
$webApp.SuiteBarBrandingElementHtml = '<div class="ms-core-brandingText"><a href="http://intranet.orion.com"><img src="http://intranet.orion.com/SiteAssets/logo_contoso.png"/></a></div>'
$webApp.Update()

The result

Pretty simple, eh?

Here is the default setting should you need to revert back:

1
2
3
$webApp = Get-SPWebApplication http://intranet.orion.com
$webApp.SuiteBarBrandingElementHtml = '<div class="ms-core-brandingText">SharePoint</div>'
$webApp.Update()

No comments:

Post a Comment