Why is the Social bar showing on home page of a communication site?

Shazmeister 0 Reputation points
2023-06-22T07:28:39.86+00:00

I have a Hub site and the home page is a communications site. On this site the social bar is shown. I thought the default behaviour was for this to be hidden. Please see attached image. How can i remove this, i have tried unsetting this as homepage and resetting but this did not work.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,039 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Yanli Jiang - MSFT 28,196 Reputation points Microsoft Vendor
    2023-06-22T08:12:32.3766667+00:00

    Hi @Shazmeister ,

    You can try this PowerShell script to disable social bar.

    #Set Parameters
    $AdminCenterURL="https://domain-admin.sharepoint.com"
    $SiteURL = "https://domain.sharepoint.com/sites/sitename"
     
    #Connect to SharePoint Online
    Connect-SPOService -Url $AdminCenterURL -Credential (Get-Credential)
     
    #Disable Social Bar on Site Pages
    Set-SPOSite -Identity $SiteURL -SocialBarOnSitePagesDisabled $True
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Yanli Jiang - MSFT 28,196 Reputation points Microsoft Vendor
    2023-06-26T09:29:17.98+00:00

    Hi @Shazmeister ,

    Please try this PowerShell script:

    1, Get the ComponentId of the Site Feed web part:

    # Connect to SharePoint Online
    Connect-PnPOnline -Url https://yourtenant.sharepoint.com/sites/yoursite -UseWebLogin
    # Get the ComponentId of the Site Feed web part
    Get-PnPClientSideComponent -Scope Web | Where-Object {$_.Name -eq "SiteFeed"}
    

    2, Disable the social bar on the home page through ComponentId:

    # Disable social bar on home page
    Set-PnPClientSideWebPart -Page "Home.aspx" -Identity "SiteFeed" -ComponentId "ComponentId" -Properties @{"FeedType"="None"}
    
    

    Replace "https://yourtenant.sharepoint.com/sites/yoursite" with the URL of your SharePoint Online site, and "Home.aspx" with the name of your home page if it's different. This script disables the social bar on the home page by setting the "FeedType" property of the "SiteFeed" web part to "None".

    Please note that you need to have the SharePoint PnP PowerShell module installed to run this script.

    There is a post of Salaudeen Rajack about pnp PowerShell module for your reference:

    https://www.sharepointdiary.com/2018/03/connect-to-sharepoint-online-using-pnp-powershell.html

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.