Forum Discussion
How can I add the "title" (banner) / title area to an existing page?
This will not give you the same result as what the author of this thread described - what you have explained will change the site header globally for entire site, while here we're discussing changing the banner for a single page.
You're right. The solution given above by creating a new page and then renaming it to the name of old page might not work sometimes if you have any integration based on the page ID.
Hence, you can get back the page title and header back for existing pages easily using the PnP PowerShell commands (mentioned above as well):
Connect-PnPOnline -Url https://tenant.sharepoint.com/sites/siteName -UseWebLogin
Set-PnPPage -Identity "MyPage" -LayoutType "Article"
For more information, check this article: SharePoint Online: Create a blank page without header & title
Note that you have to first install the PnP PowerShell module. Check below articles for more information:
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.