Skip to content
Amal Hashim
All posts
Snippet

SharePoint 2013 - Hide page title

Hide the page title on a SharePoint 2013 page with a small script added to the master page.

1 min read#JavaScript#SharePoint 2013

Sometimes a page does not need the title that SharePoint renders at the top. You can hide it with a short script in the master page.

Edit the master page and place this inside the head tag:

html
<script type="text/javascript">
	function hidePageTitle() {
		var elem = document.getElementById('pageTitle');
		elem.style.display = 'none';
	}

	_spBodyOnLoadFunctionNames.push("hidePageTitle");
</script>

_spBodyOnLoadFunctionNames makes SharePoint run the function once the page body has loaded, so the title element exists by then.