SharePoint Branding: Hide custom elements in SharePoint 2010 dialog boxes

When you add HTML or a new custom control to the master page you might want to hide it in the dialog boxes. The easiest way to do this is by adding the class s4-notdlg to the top HTML element of the code you added.

It's cleaner and simpler than manually hiding all your custom elements via CSS.

Without the s4-notdlg class:

With the s4-notdlg class:

Dércia Silva
Posted by Dércia Silva on July 6, 2011

Related articles