Monday, February 23, 2009

Hide View All Site Content Menu And Site Action Menu

Some time we need to hide View All Site Content & Site Action Menu from normal user so that they won't mess around.

Add Content Editor webpart, to the page and add below code to it.
<style>
/* TO REMOVE MY SITE LINK */
#ctl00_PlaceHolderGlobalNavigation_ctl08_hlMySite{display:none;}
/* TO REMOVE MY LINKS */
#ctl00_PlaceHolderGlobalNavigation_ctl09_MyLinksMenuMenu_t{display:none;}
/* TO REMOVE SEARCH */
.ms-sbrow{display:none;}

/* TO REMOVE SITE ACTION MENU */
.ms-siteactionsmenu{display:none;}

/* TO REMOVE VIEW All SITE CONTENT MENU */
.ms-quicklaunchheader{display: none;}

/* TO REMOVE RECYCLE BIN */
.ms-recyclebin{display:none;}
</style>
Boom you are done and results:


Hide Whole Master Page:
<style type="text/css">
.ms-globalbreadcrumb{display:none}
.ms-globalTitleArea {display:none}
.ms-bannerframe{display:none}
.ms-titlearealeft{display:none}
.onetidPageTitleAreaTable{display:none}
.ms-quickLaunch{display:none}
.ms-navframe{display:none}
.ms-titlearearight{display:none}
.ms-pagetitleareaframe{display:none}
.ms-pagemargin{display:none}
.ms-bodyareapagemargin{display:none}
.ms-pagebottommarginright{ display:none}
.ms-leftareacell{ display:none}
.ms-pagebottommargin{ display:none}
</style>