Hide Total Page Views & Like Button on a Modern Page
On
Sometimes you want to hide the page views and like button on a modern page.
You have two options
- Disable at the tenant level
- Disable at the site collection level
You can perform the above options only with PowerShell at this moment on modern team sites because of a bug. It can however be disabled on a Communication sites from the page.
Disable at the Tenant level
If you have installed SPO PowerShell module, use
Set-SPOTenant -SocialBarOnSitePagesDisabled $true
or using PnP PowerShell
Set-PnPTenant -SocialBarOnSitePagesDisabled $false
Disable at the Site Collection level
To disable it at site collection level, run:
Set-SPOSite -Identity <site-coll-url> -SocialBarOnSitePagesDisabled $true
Other posts you might be interested in
- Create Picture Library in a Communication Site
- Fix: Cannot connect SharePoint Designer to Modern Team sites
- Fix Connect-SPOService : Could not authenticate to SharePoint Online using OAuth 2.0
- Export and Import SharePoint Document & List Schema
- How to Remove the Top Banner from SharePoint Online Modern Pages