Hiding Elements in a SharePoint Dialog Box

Elements added to a SharePoint 2010 master page may show up in every dialog box. Learn how to remove them from dialog boxes.

Have you tried to add elements to a SharePoint 2010 master page and then noticed they also appear in every dialog box?

Microsoft recommends you do something like this to hide the element in the dialog box:

<div class="s4-notdlg">[your text]</div>

where s4-notdlg is what hides the elements and its child elements in the dialog box.

If you're having trouble with this, or if you have several custom elements scattered throughout your master page, check out Heather Solomon's alternative method.

Let's Connect

Keep Reading

Add Custom JavaScript and Stylesheets from SharePoint Master Page

You can add JavaScript and CSS files to your master page if you want to overwrite some default styles or add some functionality via a new script.

Aug 06, 2013

Edit Files Efficiently in SharePoint

Eliminate the need to duplicate files across site collections.

Dec 01, 2012

Add Custom CSS to SharePoint 2010 without Master Page

Here's how you can add custom styles to a specific site collection in SharePoint 2010.

Dec 02, 2012