Home

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

How to Run JavaScript on SharePoint Pages

Here's a cool trick to run JavaScript on SharePoint 2010 wiki pages without editing the master page.

Dec 01, 2012

CAML Query Builder for SharePoint 2010

A useful tool for building CAML queries in Microsoft SharePoint 2010.

Nov 30, 2012

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