In the following example, use the
<SharePoint:SPSecurityTrimmedControl> control to hide the entire Site Actions menu from SharePoint pages. This is an ideal solution where you want to hide the Site Actions menu from all bar site owners. Perform the following steps to hide the entire Site Actions menu.
1. In the sample.master page, locate the following line of code:
<span class="ms-siteactionsmenu" id="siteactiontd">
2. Add a couple of carriage returns immediately above the line and then type the following:
<SharePoint:SPSecurityTrimmedControl runat="server" Permissions="ManageSubWebs">
SharePoint Designer automatically adds an equivalent closing tag when you type the
> closing bracket on the opening tag. Delete the ...