Skip Ribbon Commands
Skip to main content

Erin Glenn's Blog

:

Erin Glenn's Blog > Posts > Remove Global Navigation, Quick Launch, Title, and Breadcrumbs on Web Part Page
April 02
Remove Global Navigation, Quick Launch, Title, and Breadcrumbs on Web Part Page

In SharePoint 2010, a web part web page will still show the global navigation, title and breadcrumbs.  Depending on the type of site, it will also still show the Quick Launch (for publishing sites).

You can remove all of these at once by placing this CSS in a Content Editor or HTML Form Web Part:

<style type="text/css">

#s4-ribbonrow, .ms-cui-topBar2, .s4-notdlg, .s4-pr s4-ribbonrowhidetitle, .s4-notdlg noindex, #ms-cui-ribbonTopBars, #s4-titlerow, #s4-pr s4-notdlg s4-titlerowhidetitle, #s4-leftpanel-content {display:none !important;}

.s4-ca{margin-left:0px !important; margin-right:0px !important;}

</style>

BEWARE! If you remove the ribbon, it's hard to get into Edit mode.  Just append this to your page URL:

​?ToolPaneView=2&pagemode=edit​

Comments

There are no comments for this post.