65.9K
CodeProject is changing. Read more.
Home

Hide Site Actions - SharePoint 2010

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.67/5 (3 votes)

Nov 15, 2011

CPOL
viewsIcon

24500

Hiding the Site Actions button on Public Facing SharePoint Foundation (or Server) sites.

Hiding the Site Actions button on Public Facing SharePoint Foundation (or Server) sites:

  • Open up SharePoint Designer
  • Open the Master Page being utilized for your sites
  • Locate the following snippet of code:
  • <span class="ms-siteactionsmenu" id="siteactiontd">
  • Add:
  • <SharePoint:SPSecurityTrimmedControl runat="server" Permissions="ManageSubWebs">

    just before the line of code in 3.

  • Right click on the tag in step 3 and click on Select Tag.
  • Enter this after the span tag: </SharePoint:SPSecurityTrimmedControl>.
  • Save the Master Page.
  • Approve and publish if required (server version).