How can i remove header and footer in sharepoint view.

Siti Fatimah 46 Reputation points
2021-12-08T10:33:37.963+00:00

155908-footer.png

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

Accepted answer
  1. Elsie Lu_MSFT 9,801 Reputation points
    2021-12-09T06:33:55.317+00:00

    Hi @Anonymous , welcome to Q&A forum!

    This can be achieved.

    The Social Bar is a new feature in SharePoint Online modern pages, that lets users to like, comment, and see the number of views. To disable the social bar, Run this PowerShell script in SharePoint Online Management Shell. Make sure you set the parameters accordingly.

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

    =======================================================

    After running the commands:

    156172-11.png
    156143-10.png

    Reference:
    SharePoint Online: How to Disable Social Bar (Like, Comment, Views, Save for later) in Modern Site Pages?

    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.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Siti Fatimah 46 Reputation points
    2021-12-09T06:39:31.13+00:00

    Thanks for the answer @Elsie Lu_MSFT

    1 person found this answer helpful.
    0 comments No comments

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.