Change SharePoint 2013 SuiteBarBrandingElementHtml with PowerShell

Here is a snippet of code to change (and link) the default “SharePoint” text in a new SharePoint 2013 site.


# Uncomment to load the Snap-in if you aren't using the SharePoint PowerShell Shortcut
# Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

# Enter the URL of the site you wish to update
$webappurl = "https://mysharepointsite.com"
$webApp = Get-SPWebApplication $webappurl

# Enter the HTML/Link for the text
$html = '<div class="ms-core-brandingText"><a style="color:white;" href="' + $webappurl + '">SharePoint</a></div>'
$webApp.SuiteBarBrandingElementHtml = $html

# Update SharePoint
$webApp.Update()


Advertisements

One thought on “Change SharePoint 2013 SuiteBarBrandingElementHtml with PowerShell

  1. Pingback: Informed Consulting Blog » Changes to the ‘SuiteBarBrandingElementHtml’ not reflected

Leave a Reply

Fill in your details below or click an icon to log in:

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