SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a portal and in master page I was being asked to hide the whole ribbon so i did this. But since then i am having so many problems like if i have a custom list with a document to attach option the modal dialog opens but no buttons inside and similarly i have a link which opens a custom aspx form embed inside webpartpage the modal dialog doesnt appear ..only site collection administrator can see the modal dialogues. Someone advised me not to hide the ribbon and only hide site action. So how to hide only site action?

Sharepoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" Permissions="ManageWeb">
    <script type="text/javascript">
        document.getElementById("s4-ribbonrow").style.display = "block";
share|improve this question
up vote 1 down vote accepted

Like this:

<SharePoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" PermissionsString="ManageSubwebs">

<<SharePoint:SiteActions control>>


Reference: How to remove Site Actions and View All Site Content.

share|improve this answer
Benny i guess ive messed the masterpage..i did hide the ribbon long time back and now i dont remember what did i do exactly to hide it as i am unable to unhide my ribbon. please see my edited question – user342944 Dec 11 '12 at 20:07
@user342944 Maybe start over and take a new copy of the v4.master would do the trick? – Benny Skogberg Dec 11 '12 at 20:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.