WebPartPage title
-
29-09-2020 - |
Question
I've created a webpartpage and for some reason the title of the page is set to the filename of the page, not the Title
column.
Has anyone else seen this behaviour and know of a fix?
Solution
I don't have an answer for why this is occurring so I ended up implementing a workaround. A couple of limitations:
- SharePoint 2013 Online (i.e. No SPD)
- No deployed code
My workaround makes use of jQuery
function SetTitle (newTitle){
var $title = $('#pageTitle > span > span');
if ($title){
$title.text(newTitle); // attempt to set the SharePoint page title
document.title = newTitle; // change the Window/Tab title
}
}
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange