SharePoint 2013: Changing title bar content and adding a link

You probably noticed, that the default title in every SharePoint site collection says “SharePoint”. Yeah, fine. That’s the name of the software we’re using. Good to know! If you are running more than one site collection or web application, this title is ambiguous and should be changed to the name of the site or the intended purpose of the web application. Unfortunately, Microsoft does not want you to change that title by using something like a GUI.

So let’s do it by using a little powershell script.

$webApp = Get-SPWebApplication https://yoursite.com

$webApp.SuiteBarBrandingElementHtml = '<div class="ms-core-brandingText"><a href="https://yoursite.com" class="ms-core-suiteLink-a" style="{display: inline; padding-left: 0px;} :hover {background-color: transparent;}">Your Title!</a></div>'

$webApp.Update()

This will change the title and add a link to it, so you can use it as some kind of a home button. The inline styling removes the hover effect. It might not be perfect, but it gives you a good idea how to deal with this problem. Good luck!

Advertisements
SharePoint 2013: Changing title bar content and adding a link

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s