How to hide the “Make Homepage” button in the SharePoint ribbon

A TechNet Forum member was looking for help on hiding the “Make Homepage” button in the SharePoint ribbon. I provided the following XML to hide the button:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction
    Id="RemoveMakeHomePageButton"
    Location="CommandUI.Ribbon">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.WikiPageTab.PubPageActions.SetHomePage" />
      </CommandUIDefinitions>
    </CommandUIExtension>
  </CustomAction>
</Elements>

The following MSDN article provides additional guidance on getting started with customizing the Ribbon, Customizing and Extending the SharePoint 2010 Server Ribbon.

Leave a Reply