Forum Discussion

dudhani's avatar
dudhani
Copper Contributor
Nov 19, 2019

How to display the SharePoint page title?

When I view my SharePoint site in developer mode, I'm able to see the title. But used class name as ms-hidden.

Maybe because of this page title is not visible. I don't know to edit code in the master page.

Please tell me the code I can paste in the script editor. Or please help with other solutions to display the page title. I tried with the below code, but it is not helping.

 

<style type="text/css">  
   .ms-core-pageTitle {  
      display: inline;  
   }  
</style>

 The actual SharePoint title code is as below:

<h1 class="ms-core-pageTitle" id="pageTitle">
<span id="DeltaPlaceHolderPageTitleInTitleArea">
<label class="ms-hidden">Some Title</label>
</span>
<div class="ms-displayInlineBlock ms-normalWrap" id="DeltaPlaceHolderPageDescription">
<a id="ms-pageDescriptionDiv" style="display:none;" href="javascript&colon;;">
<span id="ms-pageDescriptionImage">&nbsp;</span>
</a>
<span class="ms-accessible" id="ms-pageDescription">
</span>
<script type="text/javascript">// <![CDATA[
_spBodyOnLoadFunctionNames.push("setupPageDescriptionCallout");
// ]]>
</script>
</div>
</h1>

Resources