Thursday, May 03, 2012 9:08 AM
My master page seems to be everywhere, even on the announcements part of my sharepoint! Any ideas on how to set it to the default?
Thursday, May 03, 2012 9:48 AM
In SharePoint 2010 dialogs, there is a class mentioned for s4-Title and header div's named “s4-notdlg”.
For the sections in the masterpage which you don't want show in dialogs like in NewItem, ViewItem, EditItem.aspx, then include one more CSS class for those sections called "s4-notdlg".
Hope this will help you.
Thursday, May 03, 2012 10:08 AM
Sorry I don't quite get you, I have a custom CSS file which I have added
Is that right? It's not working :(
Thursday, May 03, 2012 10:29 AM
there is already a class defined by SharePoint named s4-notdlg.
you need to mention this class for the section (div or table) which you don't want to show in the Dialog.
for example. in the above screenshot, you need to hide the masterpage header (images).
So what you need to do is, you might have mentioned those section in a div or a table.
for that tag, add s4-notdlg class.
if there is already a class mentioned for that tag, then add it like this <table class='headerclass s4-notdlg' > (just mention that another class css class with space)
if there is no class mentioned for that tag, then add it like this. <table class='s4-notdlg'>
you don't need to mention anything in your css file. just change the master page as mentioned above.
- Marked As Answer by R C Harris Thursday, May 03, 2012 10:47 AM
Thursday, May 03, 2012 10:48 AMBrill, you have answered my query, cheers :)