SharePoint 2010 Hide the title and description from Ribbon

If you don’t like the nice title and description in the ribbon bar, you can easily remove or hide it. Normally the ribbon looks like this:

It has a logo, the title and the description. It also could look like this if you do some branding or customizing:

If you only want to display the logo you can choose between two options.

Option 1: Hide the title only on single pages

Option 2: Hide the title on all sites

Let’s have a look at Option 1. For this you just have to insert a Content Editor Webpart on the Page where to hide the title. Then you insert in the html source view the following code:



<style type="text/css">
BODY .s4-titletext {
DISPLAY: none
}

BODY .s4-titlelogo {
float:left;
}
.s4-title .s4-pagedescription {
VISIBILITY: hidden
}
</style>


In option 2 you have to deal with the SharePoint Designer and the master page. If you open your masterpage and look for the placeholder “PlaceHolderSiteName”, you wrap a div around it and set the style to display none. See below the extract from the masterpage which only displays the logo afterwards:



<td>
<div style="display:none">
<h1 name="onetidProjectPropertyTitle">
<asp:contentplaceholder id="PlaceHolderSiteName" runat="server">
<sharepoint:splinkbutton runat="server" NavigateUrl="~site/" id="onetidProjectPropertyTitle" xenforcedminimumheight="" style="height: 14px; display: inline-block"><sharepoint:projectproperty Property="Title" runat="server" /></sharepoint:splinkbutton>
</asp:contentplaceholder>
</h1>
<span id="onetidPageTitleSeparator">
<sharepoint:clustereddirectionalseparatorarrow runat="server"/> </span>
<h2>
<asp:contentplaceholder id="PlaceHolderPageTitleInTitleArea" runat="server" />
</h2>
<div tabindex="0" >
<asp:contentplaceholder id="PlaceHolderPageDescription" runat="server"/>
</div>
</div>
</td>


Hope this helps.

..:: I LIKE SHAREPOINT ::..

The article or information provided here represents completely my own personal view & thought. It is recommended to test the content or scripts of the site in the lab, before making use in the production environment & use it completely at your own risk. The articles, scripts, suggestions or tricks published on the site are provided AS-IS with no warranties or guarantees and confers no rights.

Karsten Pohnke About Karsten Pohnke
He is Consultant for SharePoint Solutions for collaboration, communication and business processes. He provides his customers applications based on standard features as well as development or combining the power of several microsoft tools like Dynamics CRM. In his free time he tries to collect tipps and worthy experience in this blog.