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
Hi Kwesi, thanks for posting the info. You state that you are able to set this on page level as well. As far as I know you are only able to disable the comments section on a page and not the Like, views and save for later functionality. Can you?