Change the Title of a SharePoint 2013 site with JavaScript

September 23rd, 2013 | Posted by Marijn in customization | design | jquery / javascript | SharePoint 2013

A client wanted to change the title of a SharePoint 2013 site: the Search Center. Changing the site name or the results.aspx page wouldn’t do the trick.

Using the F12 function in IE I quickly found out that the title shown on a page is just a span element:

<span id="DeltaPlaceHolderPageTitleInTitleArea">Site Title</span>

That means we can adjust that very easily with javascript:

document.getElementById("DeltaPlaceHolderPageTitleInTitleArea").innerHTML="New Site Title";

WARNING: this will not change the title itself, just the title shown on the page!

You can follow any responses to this entry through the RSS 2.0 You can leave a response, or trackback.

Leave a Reply

%d bloggers like this: