Site icon My Media Helper, Inc

Hide or Delete Your SharePoint Page Title

Copy and Move Sharepoint Content

Mastering SharePoint


Hiding or deleting SharePoint page titles can be useful for customizing the look and feel of your SharePoint site.








Here are some tricks to help you achieve that:

Hiding Page Titles

Using Modern Page Settings:

Edit the page.

Click on the page title.

Use the “Page Details” pane to modify the title.

You can remove the title text or use a single space to make it appear hidden.

Save and publish the page.

Using CSS (Modern Pages):

Edit the page.

Add a new “Embed” web part.

Insert the following CSS within a style tag:

Save and publish the page.

Using PowerShell (Site Level):

You can use PowerShell to hide page titles across multiple pages. Here’s an example script:

Connect-PnPOnline -Url “https://yoursite.sharepoint.com” -Credentials (Get-Credential)
$pages = Get-PnPListItem -List “Site Pages”
foreach ($page in $pages) {
Set-PnPListItem -List “Site Pages” -Identity $page.Id -Values @{“Title” = “”}
}

This script connects to your SharePoint site and sets the title of each page in the “Site Pages” library to an empty string.

Deleting Page Titles

Deleting Title Column from the Library (Classic Pages):

Go to the “Site Pages” library.

Click on “Library Settings.”

Under the “Columns” section, click on “Title.”

Set the column to “Hidden.”

This will hide the title column for all items in the library, effectively deleting the titles.

Using SPFx Extensions:

Develop a SharePoint Framework (SPFx) extension to hide the title on page load.

This requires development skills and knowledge of the SPFx framework.

Additional Tips

Version Control: Before making any changes, ensure you have a backup or version control in place to revert changes if necessary.

Testing: Always test changes on a single page or a test environment before applying them to the entire site.

Permissions: Ensure you have the necessary permissions to edit pages, libraries, and site settings.

These methods should help you customize your SharePoint pages by hiding or removing page titles.





Exit mobile version