Customize SharePoint 2013 Master Page – Change the Default Browse Tab at Ribbon

When you want to change the new SharePoint 2013 default browse tab (image 1) with the AD tab (image 2) showing below, you need to do the following:

 image 1: default browse tab

image 2: AD image browse tab

1.      Create a new master page by copying seattle.master as the template

2.      Find the first div with id=”siteIcon by adding the style=”display:none;” to hidden the default logo.

3.       Find the 2nd div <div class=”ms-breadcrumb-box ms-tableCell ms-verticalAlignTop“>then add your AD image tags or javascript to display the image.  If you have a customized image control for rotating images from a document library, add it here:

<Kproject:RotatingImage runat=”server” TagName=”div” ImageLibraryNameKey=”SplashMasterPage.BannerImage.PictureLibraryName” ImageURLKey=”SplashMasterPage.BannerImage.PictureLibraryPath“/>


If the control uses the background image for a div to display the AD image, remember doing the following code to center the image with no repeat:

base.Style.Add(HtmlTextWriterStyle.BackgroundImage, this.image.ImageUrl);

          base.Style.Add(“background-repeat”, “no-repeat”);

          base.Style.Add(“background-position-x”, “center”);

          base.Style.Add(HtmlTextWriterStyle.Height, “100px”);

          base.Style.Add(HtmlTextWriterStyle.Width, “100%”);


4.       Find other div that display the breadcrmb and title to hidden them:

<div class=”ms-breadcrumb-top” style=”display:none;”>

<div class=”ms-breadcrumb-dropdownBox style=”display:none;”>

<h1 id=”pageTitle class=”ms-core-pageTitle style=”display:none“>

5.       Find the 3rd div to give the max with in 1 or 1 pix instead hidden them. Hidden this div will not center the image. Also hidden the search area or move it to the location in your new layout:

<div class=”ms-tableCell ms-verticalAlignTop style=”max-width:2px;”>

 <asp:ContentPlaceHolder id=”PlaceHolderSearchArea runat=”server” Visible=”false”> 

        <div id=”searchInputBox style=”display:none“>

<SharePoint:DelegateControl runat=”server” ControlId=”SmallSearchInputBox Visible=”false” />







Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s