Follow Us:
There are lots of articles online that walk you through how to update the “SharePoint” text that appears in the upper left corner of the new SharePoint 2013 ribbon. This post is going to build on that to update the text so that it becomes a dynamic link to the current site collection root. The setting is updated at the web application level, but you may not want to always have people link back to the same link from all site collections. The script has a token in the JavaScript that will always point to the root of whatever site collection you are currently in. I’ll paste in the PowerShell script then talk through what is happening.
1: $url = "javascript:window.location=location.protocol + ""//"" + window.location.host+_spPageContextInfo.siteServerRelativeUrl;"
2: $webApp = Get-SPWebApplication "https://yourwebapplication"
3: $webApp.SuiteBarBrandingElementHtml = "<div class=""ms-core-brandingText""><a href='$($url)' style='color:#ffffff; text-decoration:none;'>SharePoint</a></div>"
4: $webApp.Update()
Line 1 is creating the dynamic URL, the _spPageContextInfo.siteServerRelativeUrl is a token that SharePoint provides to get the root URL to the current site collection.
Line 2 needs to be updated with the path to the root of your web application.
You can update the “SharePoint” text on line 3 to anything you want. This can be an image or just different text.
For more information about C5 Insight or this blog entry, please Contact Us.
Thanks for sharing. I just come across it.
The complementary paper includes over 12 years of research, recent survey results, and CRM turnaround success stories.
Request Download
This 60-second assessment is designed to evaluate your organization's collaboration readiness.
Learn how you rank compared to organizations typically in years 1 to 5 of implementation - and which areas to focus on to improve.
This is a sandbox solution which can be activated per site collection to allow you to easily collect feedback from users into a custom Feedback list.
Whether you are upgrading to SharePoint Online, 2010, 2013 or the latest 2016, this checklist contains everything you need to know for a successful transition.