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.