SharePoint OOTB Page Title Snippet in Master Page

1) Open Master Page in SharePoint designer.
2) Insert below snippet under "<div id="s4-bodyContainer">" tag.

Page Title Snippet


<h1 id="custom-pagetitle">
                <!--MS:<asp:ContentPlaceHolder ID="PlaceHolderPageTitleInTitleArea" runat="server">-->
                <!--CS: Start Page Field: Title Snippet-->
                <!--SPM:<%@Register Tagprefix="PageFieldFieldValue" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
                <!--MS:<PageFieldFieldValue:FieldValue FieldName="fa564e0f-0c70-4ab9-b863-0177e6ddd247" runat="server">-->
                <!--ME:</PageFieldFieldValue:FieldValue>-->
                <!--CE: End Page Field: Title Snippet-->
                <!--ME:</asp:ContentPlaceHolder>-->
</h1>

3) Here you will see the output of the Page Title

OOTB Page Title


No comments:

Post a Comment

A Guide to Integrating ChatGPT into Microsoft Teams and SharePoint Online Without Premium Connectors Using SharePoint Framework SPFX Webpart - Part 2

We will now establish a SharePoint development environment to create an SPFX Webpart that incorporates ChatGPT. To establish a SharePoint de...