Is there a programmatic way to enable the setting "Show header and navigation" in a SharePoint site?

JBlak 20 Reputation points
2024-06-05T14:08:48.0866667+00:00

Hi - I am looking for a programmatic way to enable the "Show header and navigation" feature in a SharePoint site. Is there a way to do this?

User's image

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,025 questions
0 comments No comments
{count} votes

Accepted answer
  1. Xyza Xue_MSFT 25,381 Reputation points Microsoft Vendor
    2024-06-06T02:16:14.16+00:00

    Hi @JBlak ,

    You can enable the "Show header and navigation" feature in a SharePoint site using SharePoint Online Management Shell (Replace "https://yourtenant-admin.sharepoint.com" with the URL of your SharePoint admin site, and replace "https://yourtenant.sharepoint.com/sites/yoursite" with the URL of the site where you want to enable the feature.):

    Connect-SPOService -Url https:/yourtenant-admin.sharepoint.com
    Set-SPOSite -Identity https://yourtenant.sharepoint.com/sites/yoursite -ListsShowHeaderAndNavigation $true
    

    Result:

    User's image


    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 additional answers

Sort by: Most helpful

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.