{"id":1212,"date":"2020-08-07T20:44:47","date_gmt":"2020-08-07T20:44:47","guid":{"rendered":"http:\/\/www.kofrimpong.com\/?p=1212"},"modified":"2024-01-07T13:33:10","modified_gmt":"2024-01-07T13:33:10","slug":"hide-total-page-views-like-button-on-a-modern-page","status":"publish","type":"post","link":"https:\/\/www.kofrimpong.com\/hide-total-page-views-like-button-on-a-modern-page\/","title":{"rendered":"Hide Total Page Views & Like Button on a Modern Page"},"content":{"rendered":"\n
Sometimes you want to hide the page views and like button on a modern page.<\/p>\n\n\n\n
You have two options<\/p>\n\n\n\n
You can perform the above options only with PowerShell at this moment on modern team sites because of a\u00a0bug<\/a>. If you have installed SPO PowerShell module, use<\/p>\n\n\n\n or using PnP PowerShell<\/p>\n\n\n\n To disable it at site collection level, run:<\/p>\n\n\n\n A tip on how to disable the total views & like button on a modern page<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_wp_applaud_exclude":false,"footnotes":""},"categories":[10],"tags":[56],"series":[],"yoast_head":"\nIt can however be disabled on a Communication sites from the page.<\/s><\/p>\n\n\n\nDisable at the Tenant level<\/i><\/a><\/h2>\n\n\n\n
Set-SPOTenant -SocialBarOnSitePagesDisabled $true<\/code><\/pre>\n\n\n\n
Set-PnPTenant -SocialBarOnSitePagesDisabled $false<\/code><\/pre>\n\n\n\n
Disable at the Site Collection level<\/i><\/a><\/h2>\n\n\n\n
Set-SPOSite -Identity <site-coll-url> -SocialBarOnSitePagesDisabled $true<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"