On SharePoint 2010 Pages, we can view the lot of ribbon controls (buttons, menus, labels, etc…). But all of the controls are not active for all the times.

It has some reasons for disabling those controls, maybe

  • The user doesn’t had the permissions to accesss that control,
  • That functionality doesn’t applied for currently selected objects.

On those situations, the ribbon controls are disabled, but visible to users. Instead of diabling, how we can hide those controls. We have option with css styles.

The class name “.ms-cui-disabled” used to represt the in-active ribbon controls. So can just use the following style to hide the ribbon controls. 

<style type=”text/css”>
 display:none !important;

We have to apply that style in css page or add within the head tag of SharePoint masterpage.

1 Comment

Tobias Lekman · May 25, 2011 at 7:34 AM


I had the same issue myself and also added some logic to remove the control groups when they were empty with a bit of jQuery. Have a look at my solution and see what you think:


Leave a Reply

Your email address will not be published. Required fields are marked *