Hide Total Page Views & Like Button on a Modern Page
On < 1 minuteSometimes 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
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?