Thursday, June 4, 2015

SharePoint 2013: How to change the Suite Link Bar

The Suite Link Bar is what you see at the top of the page, just below the browser menu bar:
By default, it displays the simple "SharePoint" text.  What you see displayed here is contained in the web application's SuiteBarBrandingElementHtml property. If you interrogate this property, you will see the following:
PS C:\Users\spAdmin> $wa = Get-SPWebApplication http://App1:5000 PS C:\Users\spAdmin> $wa.SuiteBarBrandingElementHtml <div class="ms-core-brandingText">SharePoint</div>
You can modify this property at any time using PowerShell.  You can even configure this as a convenient hyperlink.  The next steps show you how.

  1. Run this script to just change the text:
    $wa = Get-SPWebApplication http://App1:5000 $SuiteBarText="<div class='ms-core-brandingText'>Central Admin: Corporate Site <font color='red'><b>(Production)</b></font></div>" $wa.SuiteBarBrandingElementHtml=$SuiteBarText $wa.update()
  2. Run this script to change the text and configure it as a hyperlink:
    $wa = Get-SPWebApplication http://App1:5000 $SuiteBarText="<div class='ms-core-brandingText'><a href='http://App1:5000'>Central Admin: Corporate Site</a> <font color='red'><b>(Production)</b></font></div>" $wa.SuiteBarBrandingElementHtml=$SuiteBarText $wa.update()

No comments: