1.Add new module in a sharepoint solution.
2.Rename sample.txt to custom.master.
3.Copy and paste the below content in a custom.master page.
<%@ Master Language="C#" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="Welcome" Src="~/_controltemplates/15/Welcome.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<SharePoint:sphtmltag dir="<%$Resources:wss,multipages_direction_dir_value%>" id="SPHtmlTag" runat="server">
<head id="Head1" runat="server">
<meta name="GENERATOR" content="Microsoft SharePoint" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=10" />
<meta http-equiv="Expires" content="0" />
<SharePoint:SPPinnedSiteTile ID="SPPinnedSiteTile1" runat="server" TileUrl="/_layouts/15/images/SharePointMetroAppTile.png" TileColor="#0072C6" />
<SharePoint:RobotsMetaTag ID="RobotsMetaTag1" runat="server" />
<SharePoint:PageTitle ID="PageTitle1" runat="server">
<asp:ContentPlaceHolder id="PlaceHolderPageTitle" runat="server">
<SharePoint:ProjectProperty ID="ProjectProperty1" Property="Title" runat="server" />
</asp:ContentPlaceHolder>
</SharePoint:PageTitle>
<SharePoint:SPShortcutIcon ID="SPShortcutIcon1" runat="server" IconUrl="/_layouts/15/images/favicon.ico?rev=23" />
<SharePoint:StartScript ID="StartScript1" runat="server" />
<SharePoint:CssLink ID="CssLink1" runat="server" Version="15" />
<SharePoint:CacheManifestLink ID="CacheManifestLink1" runat="server" />
<SharePoint:ScriptLink ID="ScriptLink1" Language="javascript" Name="core.js" OnDemand="true" runat="server" Localizable="false" />
<SharePoint:ScriptLink ID="ScriptLink2" Language="javascript" Name="menu.js" OnDemand="true" runat="server" Localizable="false" />
<SharePoint:ScriptLink ID="ScriptLink3" Language="javascript" Name="callout.js" OnDemand="true" runat="server" Localizable="false" />
<SharePoint:ScriptLink ID="ScriptLink4" Language="javascript" Name="sharing.js" OnDemand="true" runat="server" Localizable="false" />
<SharePoint:ScriptLink ID="ScriptLink5" Language="javascript" Name="suitelinks.js" OnDemand="true" runat="server" Localizable="false" />
<SharePoint:CustomJSUrl ID="CustomJSUrl1" runat="server" />
<SharePoint:SoapDiscoveryLink ID="SoapDiscoveryLink1" runat="server" />
<SharePoint:AjaxDelta ID="DeltaPlaceHolderAdditionalPageHead" Container="false" runat="server">
<asp:ContentPlaceHolder ID="PlaceHolderAdditionalPageHead" runat="server" />
<SharePoint:DelegateControl ID="DelegateControl1" runat="server" ControlId="AdditionalPageHead" AllowMultipleControls="true" />
<asp:ContentPlaceHolder ID="PlaceHolderBodyAreaClass" runat="server" />
</SharePoint:AjaxDelta>
<SharePoint:CssRegistration ID="CssRegistration1" Name="Themable/corev15.css" runat="server" />
</head>
<body>
<div>
<SharePoint:ImageLink ID="ImageLink1" runat="server" />
</div>
<SharePoint:SPNoScript ID="SPNoScript1" runat="server" />
<SharePoint:SPClientIDGenerator ID="SPClientIDGenerator1" runat="server" ServerControlID="DeltaPlaceHolderMain;DeltaPlaceHolderPageTitleInTitleArea;DeltaPlaceHolderUtilityContent" />
<SharePoint:SharePointForm ID="SharePointForm1" runat="server" onsubmit="if (typeof(_spFormOnSubmitWrapper) != 'undefined') {return _spFormOnSubmitWrapper();} else {return true;}">
<script type="text/javascript"> var submitHook = function () { return false; }; theForm._spOldSubmit = theForm.submit; theForm.submit = function () { if (!submitHook()) { this._spOldSubmit(); } }; </script>
<SharePoint:AjaxDelta ID="DeltaSPWebPartManager" runat="server">
<WebPartPages:SPWebPartManager ID="SPWebPartManager1" runat="Server" />
</SharePoint:AjaxDelta>
<asp:ScriptManager ID="ScriptManager" runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true" />
<SharePoint:AjaxDelta ID="DeltaDelegateControls" runat="server">
<SharePoint:DelegateControl ID="DelegateControl2" runat="server" ControlId="GlobalNavigation" />
<SharePoint:DelegateControl ID="DelegateControl3" ControlId="GlobalSiteLink3" Scope="Farm" runat="server" Visible="false" />
</SharePoint:AjaxDelta>
<div id="TurnOnAccessibility" style="display: none" class="s4-notdlg noindex">
<a id="linkTurnOnAcc" href="javascript:void(0);" class="ms-accessible ms-acc-button" onclick="SetIsAccessibilityFeatureEnabled(true);UpdateAccessibilityUI();document.getElementById('linkTurnOffAcc').focus();return false;">
<SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" Text="<%$Resources:wss,master_turnonaccessibility%>" EncodeMethod="HtmlEncode" /></a>
</div>
<div id="TurnOffAccessibility" style="display: none" class="s4-notdlg noindex">
<a id="linkTurnOffAcc" href="javascript:void(0);" class="ms-accessible ms-acc-button" onclick="SetIsAccessibilityFeatureEnabled(false);UpdateAccessibilityUI();document.getElementById('linkTurnOnAcc').focus();return false;">
<SharePoint:EncodedLiteral ID="EncodedLiteral2" runat="server" Text="<%$Resources:wss,master_turnoffaccessibility%>" EncodeMethod="HtmlEncode" /></a>
</div>
<div class="s4-notdlg s4-skipribbonshortcut noindex">
<a id="A1" href="javascript:;" onclick="document.getElementById('startNavigation').focus();" class="ms-accessible ms-acc-button" accesskey="<%$Resources:wss,skipribbon_accesskey%>" runat="server">
<SharePoint:EncodedLiteral ID="EncodedLiteral3" runat="server" Text="<%$Resources:wss,skipRibbonCommandsLink%>" EncodeMethod="HtmlEncode" /></a>
</div>
<div class="s4-notdlg noindex">
<a id="A2" href="javascript:;" onclick="document.getElementById('mainContent').focus();" class="ms-accessible ms-acc-button" runat="server">
<SharePoint:EncodedLiteral ID="EncodedLiteral4" runat="server" Text="<%$Resources:wss,mainContentLink%>" EncodeMethod="HtmlEncode" /></a>
</div>
<div id="TurnOffAnimation" style="display: none;" class="s4-notdlg noindex">
<a id="linkTurnOffAnimation" href="javascript:void(0);" class="ms-accessible ms-acc-button" onclick="ToggleAnimationStatus();return false;">
<SharePoint:EncodedLiteral ID="EncodedLiteral5" runat="server" Text="<%$Resources:wss,master_disableanimation%>" EncodeMethod="HtmlEncode" /></a>
</div>
<div id="TurnOnAnimation" style="display: none;" class="s4-notdlg noindex">
<a id="linkTurnOnAnimation" href="javascript:void(0);" class="ms-accessible ms-acc-button" onclick="ToggleAnimationStatus();return false;">
<SharePoint:EncodedLiteral ID="EncodedLiteral6" runat="server" Text="<%$Resources:wss,master_enableanimation%>" EncodeMethod="HtmlEncode" /></a>
</div>
<a id="HiddenAnchor" href="javascript:;" style="display: none;"></a>
<!-- jquery reference and style reference -->
<!-- top menu bar starts here -->
<div id="suiteBar" class="ms-dialogHidden noindex" style="display:none">
<div id="suiteBarLeft">
<div class="ms-table ms-fullWidth">
<div class="ms-tableRow">
<div id="mydashboardmenu" class="s4-notdlg">
<div class="ms-tableCell ms-verticalAlignTop" style="display:none">
<SharePoint:AjaxDelta ID="DeltaPlaceHolderSearchArea" BlockElement="true" CssClass="ms-mpSearchBox ms-floatRight" runat="server">
<div id="searchInputBox">
<SharePoint:DelegateControl ID="DelegateControl5" runat="server" ControlId="SmallSearchInputBox" />
</div>
<asp:ContentPlaceHolder ID="PlaceHolderSearchArea" runat="server" Visible="false">
</asp:ContentPlaceHolder>
</SharePoint:AjaxDelta>
</div>
</div>
</div>
</div>
</div>
<div id="suiteBarRight">
<SharePoint:AjaxDelta runat="server" ID="DeltaSuiteBarRight" CssClass="ms-core-deltaSuiteBarRight" BlockElement="true">
<div id="welcomeMenuBox">
<wssuc:Welcome id="IdWelcome" runat="server" EnableViewState="false" />
</div>
<div id="suiteBarButtons">
<span class="ms-siteactions-root" id="siteactiontd">
<SharePoint:SiteActions runat="server" AccessKey="<%$Resources:wss,tb_SiteActions_AK%>" ID="SiteActionsMenuMain"
PrefixHtml=""
SuffixHtml=""
ImageUrl="/_layouts/15/images/spcommon.png?rev=23"
ThemeKey="spcommon"
MenuAlignment="Right"
MenuNotVisibleHtml="&nbsp;"
LargeIconMode="false">
<CustomTemplate>
<SharePoint:FeatureMenuTemplate ID="FeatureMenuTemplate1" runat="server"
FeatureScope="Site"
Location="Microsoft.SharePoint.StandardMenu"
GroupId="SiteActions"
UseShortId="true">
<SharePoint:MenuItemTemplate runat="server"
ID="MenuItem_ShareThisSite"
Text="<%$Resources:wss,siteactions_sharethissite%>"
Description="<%$Resources:wss,siteactions_sharethissitedescription%>"
MenuGroupId="100"
Sequence="110"
UseShortId="true"
PermissionsString="ViewPages"
PermissionMode="Any" />
<SharePoint:MenuItemTemplate runat="server" ID="MenuItem_EditPage"
Text="<%$Resources:wss,siteactions_editpage15%>"
Description="<%$Resources:wss,siteactions_editpagedescriptionv4%>"
ImageUrl="/_layouts/15/images/ActionsEditPage.png?rev=23"
MenuGroupId="200"
Sequence="210"
PermissionsString="EditListItems"
ClientOnClickNavigateUrl="javascript:ChangeLayoutMode(false);" />
<SharePoint:MenuItemTemplate runat="server" ID="MenuItem_CreatePage"
Text="<%$Resources:wss,siteactions_addpage15%>"
Description="<%$Resources:wss,siteactions_createpagedesc%>"
ImageUrl="/_layouts/15/images/NewContentPageHH.png?rev=23"
MenuGroupId="200"
Sequence="220"
UseShortId="true"
ClientOnClickScriptContainingPrefixedUrl="OpenCreateWebPageDialog('~siteLayouts/createwebpage.aspx')"
PermissionsString="AddListItems, EditListItems"
PermissionMode="All" />
<SharePoint:MenuItemTemplate runat="server" ID="MenuItem_Create"
Text="<%$Resources:wss,siteactions_addapp15%>"
Description="<%$Resources:wss,siteactions_createdesc%>"
MenuGroupId="200"
Sequence="230"
UseShortId="true"
ClientOnClickScriptContainingPrefixedUrl="GoToPage('~siteLayouts/addanapp.aspx')"
PermissionsString="ManageLists, ManageSubwebs"
PermissionMode="Any" />
<SharePoint:MenuItemTemplate runat="server" ID="MenuItem_ViewAllSiteContents"
Text="<%$Resources:wss,quiklnch_allcontent_15%>"
Description="<%$Resources:wss,siteactions_allcontentdescription%>"
ImageUrl="/_layouts/15/images/allcontent32.png?rev=23"
MenuGroupId="200"
Sequence="240"
UseShortId="true"
ClientOnClickNavigateUrl="~siteLayouts/viewlsts.aspx"
PermissionsString="ViewFormPages"
PermissionMode="Any" />
<SharePoint:MenuItemTemplate runat="server" ID="MenuItem_ChangeTheLook"
Text="<%$Resources:wss,siteactions_changethelook15%>"
Description="<%$Resources:wss,siteactions_changethelookdesc15%>"
MenuGroupId="300"
Sequence="310"
UseShortId="true"
ClientOnClickNavigateUrl="~siteLayouts/designgallery.aspx"
PermissionsString="ApplyThemeAndBorder,ApplyStyleSheets,Open,ViewPages,OpenItems,ViewListItems"
PermissionMode="All" />
<SharePoint:MenuItemTemplate runat="server" ID="MenuItem_Settings"
Text="<%$Resources:wss,siteactions_settings15%>"
Description="<%$Resources:wss,siteactions_sitesettingsdescriptionv4%>"
ImageUrl="/_layouts/15/images/settingsIcon.png?rev=23"
MenuGroupId="300"
Sequence="320"
UseShortId="true"
ClientOnClickScriptContainingPrefixedUrl="GoToPage('~siteLayouts/settings.aspx')"
PermissionsString="EnumeratePermissions,ManageWeb,ManageSubwebs,AddAndCustomizePages,ApplyThemeAndBorder,ManageAlerts,ManageLists,ViewUsageData"
PermissionMode="Any" />
<SharePoint:MenuItemTemplate runat="server" ID="MenuItem_SwitchToMobileView"
Visible="false"
Text="<%$Resources:wss,siteactions_switchtomobileview%>"
Description="<%$Resources:wss,siteactions_switchtomobileviewdesc%>"
MenuGroupId="300"
Sequence="330"
UseShortId="true"
ClientOnClickScript="var mswlh = window.location.href; if (mswlh.indexOf('?')==-1) { window.location = mswlh + '?mobile=1'; } else { window.location = mswlh + '&mobile=1'; }" />
</SharePoint:FeatureMenuTemplate>
</CustomTemplate>
</SharePoint:SiteActions>
</span>
<span id="ms-help">
<SharePoint:ThemedClusteredHoverImage
runat="server"
ID="TopHelpLink"
ThemeKey="spintl"
TouchMode="true"
TouchModeWidth="30"
TouchModeHeight="30"
TouchModePaddingTop="7"
TouchModePaddingRight="7"
TouchModePaddingBottom="7"
TouchModePaddingLeft="7"
ImageUrl="/_layouts/15/~lcid/images/spintl.png"
Width="16"
Height="16"
OffsetX="19"
OffsetY="1"
HoverOffsetX="1"
HoverOffsetY="1"
NavigateUrl="javascript:void(0);"
onclick="TopHelpButtonClick('HelpHome',event);return false"
AlternateText="<%$Resources:wss,multipages_helplink_text%>"
AccessKey="<%$Resources:wss,multipages_helplink_accesskey%>"
ToolTip="<%$Resources:wss,multipages_helplink_text%>" />
</span>
</div>
</SharePoint:AjaxDelta>
</div>
</div>
<!-- top menu bar Ends here -->
<div id="ms-hcTest"></div>
<!--top secound bar starts here ex.page,browser -->
<div id="s4-ribbonrow" style="display:none;">
<div id="globalNavBox" class="noindex">
<div id="ribbonBox">
<div id="s4-ribboncont">
<SharePoint:AjaxDelta ID="DeltaSPRibbon" BlockElement="true" runat="server">
<SharePoint:DelegateControl runat="server" ID="GlobalDelegate0" ControlId="GlobalSiteLink0" />
<SharePoint:SPRibbon ID="SPRibbon1"
runat="server"
PlaceholderElementId="RibbonContainer"
CssFile="">
<SharePoint:SPRibbonPeripheralContent ID="SPRibbonPeripheralContent1"
runat="server"
CssClass="ms-core-defaultFont ms-dialogHidden"
Location="TabRowLeft">
</SharePoint:SPRibbonPeripheralContent>
<SharePoint:SPRibbonPeripheralContent
runat="server"
Location="TabRowRight"
ID="RibbonTabRowRight"
CssClass="s4-trc-container s4-notdlg ms-core-defaultFont">
<SharePoint:SPSharePromotedActionButton ID="SPSharePromotedActionButton1" runat="server" />
<SharePoint:DelegateControl ID="DelegateControl4" runat="server" ControlId="PromotedActions" AllowMultipleControls="true" />
<SharePoint:SPSyncPromotedActionButton ID="SPSyncPromotedActionButton1" runat="server" />
<SharePoint:PageStateActionButton ID="PageStateActionButton" runat="server" Visible="false" />
<span id="fullscreenmodebox" class="ms-qatbutton">
<span id="fullscreenmode">
<SharePoint:ThemedClusteredHoverImage
runat="server"
ID="fullscreenmodeBtn"
ThemeKey="spcommon"
TouchMode="true"
TouchModeWidth="30"
TouchModeHeight="30"
TouchModePaddingLeft="7"
TouchModePaddingTop="7"
TouchModePaddingRight="7"
TouchModePaddingBottom="7"
ImageUrl="/_layouts/15/images/spcommon.png?rev=23"
Width="16"
Height="16"
OffsetX="143"
OffsetY="178"
HoverOffsetX="125"
HoverOffsetY="178"
NavigateUrl="javascript:void(0);"
onclick="SetFullScreenMode(true);PreventDefaultNavigation();return false;"
AlternateText="<%$Resources:wss,multipages_fullscreenmodelinkalt_text%>"
ToolTip="<%$Resources:wss,multipages_fullscreenmodelinkalt_text%>" />
</span>
<span id="exitfullscreenmode" style="display: none;">
<SharePoint:ThemedClusteredHoverImage
runat="server"
ID="exitfullscreenmodeBtn"
ThemeKey="spcommon"
TouchMode="true"
TouchModeWidth="30"
TouchModeHeight="30"
TouchModePaddingLeft="7"
TouchModePaddingTop="7"
TouchModePaddingRight="7"
TouchModePaddingBottom="7"
ImageUrl="/_layouts/15/images/spcommon.png?rev=23"
Width="16"
Height="16"
OffsetX="107"
OffsetY="178"
HoverOffsetX="179"
HoverOffsetY="96"
NavigateUrl="javascript:void(0);"
onclick="SetFullScreenMode(false);PreventDefaultNavigation();return false;"
AlternateText="<%$Resources:wss,multipages_fullscreenmodelinkalt_text%>"
ToolTip="<%$Resources:wss,multipages_fullscreenmodelinkalt_text%>" />
</span>
</span>
<SharePoint:DeveloperDashboard ID="DeveloperDashboard1" runat="server" />
<SharePoint:DeveloperDashboardLauncher
ID="DeveloperDashboardLauncher"
ThemeKey="spcommon"
TouchMode="true"
TouchModeWidth="30"
TouchModeHeight="30"
TouchModePaddingLeft="7"
TouchModePaddingTop="7"
TouchModePaddingRight="7"
TouchModePaddingBottom="7"
NavigateUrl="javascript:return false"
OnClick="ToggleDeveloperDashboard(window.g_ddHostBase);return false"
OuterCssClass="ms-dd-button ms-qatbutton"
runat="server"
ImageUrl="/_layouts/15/images/spcommon.png?rev=23"
AlternateText="<%$Resources:wss,multipages_launchdevdashalt_text%>"
ToolTip="<%$Resources:wss,multipages_launchdevdashalt_text%>"
OffsetX="145"
OffsetY="196"
HoverOffsetX="163"
HoverOffsetY="196"
Height="16"
Width="16" />
</SharePoint:SPRibbonPeripheralContent>
</SharePoint:SPRibbon>
</SharePoint:AjaxDelta>
</div>
<SharePoint:AjaxDelta ID="DeltaSPNavigation" runat="server">
<asp:ContentPlaceHolder ID="SPNavigation" runat="server">
<SharePoint:DelegateControl runat="server" ControlId="PublishingConsole" ID="PublishingConsoleDelegate" />
</asp:ContentPlaceHolder>
</SharePoint:AjaxDelta>
</div>
<SharePoint:AjaxDelta ID="DeltaWebPartAdderUpdatePanelContainer" BlockElement="true" CssClass="ms-core-webpartadder" runat="server">
<div id="WebPartAdderUpdatePanelContainer">
<asp:UpdatePanel
ID="WebPartAdderUpdatePanel"
UpdateMode="Conditional"
ChildrenAsTriggers="false"
runat="server">
<ContentTemplate>
<WebPartPages:WebPartAdder ID="WebPartAdder" runat="server" />
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="WebPartAdder" />
</Triggers>
</asp:UpdatePanel>
</div>
</SharePoint:AjaxDelta>
</div>
</div>
<SharePoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server"
PermissionsString="AddListItems" AuthenticationRestrictions="AuthenticatedUsersOnly">
<script type="text/javascript">
document.getElementById("s4-ribbonrow").style.display = "block";
document.getElementById("suiteBar").style.display = "block";
/*document.getElementById("Span1").style.display = "block";*/
</script>
</SharePoint:SPSecurityTrimmedControl>
<div id="s4-workspace" class="ms-core-overlay">
<!--Header Container-->
<div class="PageWrap">
<!--Header for CMA Master -->
<!-- Header Part closed here-->
<div id="s4-bodyContainer">
<!--Header Title Starts Heare -->
<div id="headercontainer" style="display: none">
<div id="s4-titlerow"
class="ms-dialogHidden s4-titlerowhidetitle">
<div id="titleAreaBox"
class="ms-noList ms-table ms-core-tableNoSpace">
<div id="titleAreaRow"
class="ms-tableRow">
<div id="siteIcon" class="ms-tableCell ms-verticalAlignTop">
<SharePoint:AjaxDelta ID="DeltaSiteLogo" BlockElement="true" runat="server">
<SharePoint:SPSimpleSiteLink CssClass="ms-siteicon-a" runat="server" ID="onetidProjectPropertyTitleGraphic">
<SharePoint:SiteLogoImage CssClass="ms-siteicon-img" name="onetidHeadbnnr0" id="onetidHeadbnnr2" LogoImageUrl="/_layouts/15/images/siteIcon.png?rev=23" runat="server"/>
</SharePoint:SPSimpleSiteLink>
</SharePoint:AjaxDelta>
</div>
<!-- My Page Title Starts here -->
<div id="mypagetitle" class="C13PageTitle">
<h1 id="pageTitle" class="ms-core-pageTitle">
<SharePoint:AjaxDelta ID="DeltaPlaceHolderPageTitleInTitleArea" runat="server">
<asp:ContentPlaceHolder ID="PlaceHolderPageTitleInTitleArea" runat="server">
<SharePoint:SPTitleBreadcrumb ID="SPTitleBreadcrumb1"
runat="server"
RenderCurrentNodeAsLink="true"
SiteMapProvider="SPContentMapProvider"
CentralAdminSiteMapProvider="SPXmlAdminContentMapProvider">
<PathSeparatorTemplate>
<SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow1" runat="server" />
</PathSeparatorTemplate>
</SharePoint:SPTitleBreadcrumb>
</asp:ContentPlaceHolder>
</SharePoint:AjaxDelta>
<SharePoint:AjaxDelta BlockElement="true" ID="DeltaPlaceHolderPageDescription" CssClass="ms-displayInlineBlock ms-normalWrap" runat="server">
<a href="javascript:;" id="ms-pageDescriptionDiv" style="display: none;">
<span id="ms-pageDescriptionImage"> </span>
</a>
<span class="ms-accessible" id="ms-pageDescription">
<asp:ContentPlaceHolder ID="PlaceHolderPageDescription" runat="server" />
</span>
<SharePoint:ScriptBlock ID="ScriptBlock2" runat="server">
_spBodyOnLoadFunctionNames.push("setupPageDescriptionCallout");
_spBodyOnLoadFunctionNames.push("Languagestyle");
</SharePoint:ScriptBlock>
</SharePoint:AjaxDelta>
</h1>
</div>
<!-- My Page Title Ends here -->
</div>
</div>
</div>
</div>
<div id="contentRow">
<div id="contentBox"
aria-live="polite" aria-relevant="all">
<div id="notificationArea" class="ms-notif-box"></div>
<SharePoint:AjaxDelta ID="DeltaPageStatusBar" BlockElement="true" runat="server">
<div id="pageStatusBar"></div>
</SharePoint:AjaxDelta>
<SharePoint:AjaxDelta ID="DeltaPlaceHolderMain" BlockElement="true" IsMainContent="true" runat="server">
<a id="mainContent" name="mainContent" tabindex="-1"></a>
<asp:ContentPlaceHolder ID="PlaceHolderMain" runat="server" />
</SharePoint:AjaxDelta>
</div>
<SharePoint:AjaxDelta ID="DeltaFormDigest" BlockElement="true" runat="server">
<asp:ContentPlaceHolder ID="PlaceHolderFormDigest" runat="server">
<SharePoint:FormDigest ID="FormDigest1" runat="server" />
</asp:ContentPlaceHolder>
</SharePoint:AjaxDelta>
<asp:ContentPlaceHolder ID="PlaceHolderSiteName" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderHorizontalNav" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderPageImage" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderTitleLeftBorder" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderMiniConsole" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderTitleRightMargin" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderTitleAreaSeparator" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderNavSpacer" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderLeftNavBarBorder" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderBodyLeftBorder" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderBodyRightMargin" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderTitleAreaClass" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderGlobalNavigation" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderGlobalNavigationSiteMap" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="WSSDesignConsole" runat="server" Visible="false" />
</div>
</div>
</div>
<!--FooterContainer Starts Here -->
<!-- FooterContainer Ends Here -->
</div>
</div>
</SharePoint:SharePointForm>
<SharePoint:AjaxDelta ID="DeltaPlaceHolderUtilityContent" runat="server">
<asp:ContentPlaceHolder ID="PlaceHolderUtilityContent" runat="server" />
</SharePoint:AjaxDelta>
<SharePoint:ScriptBlock ID="ScriptBlock1" runat="server">
var g_Workspace = "s4-workspace";
</SharePoint:ScriptBlock>
</body>
</SharePoint:sphtmltag>
4.Edit Element.xml file under the module as highlighted below.
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="CustomMaster" Url="_catalogs/masterpage">
<File Path="CustomMaster\CustomMaster.master" Url="CustomMaster.master" Type="GhostableInLibrary" />
</Module>
</Elements>
5.Add a new feature with site scope, and include the custommaster module in the feature.
6.Now deploy the solution.You can find the custom.master in master page gallery.
2.Rename sample.txt to custom.master.
3.Copy and paste the below content in a custom.master page.
<%@ Master Language="C#" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="Welcome" Src="~/_controltemplates/15/Welcome.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<SharePoint:sphtmltag dir="<%$Resources:wss,multipages_direction_dir_value%>" id="SPHtmlTag" runat="server">
<head id="Head1" runat="server">
<meta name="GENERATOR" content="Microsoft SharePoint" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=10" />
<meta http-equiv="Expires" content="0" />
<SharePoint:SPPinnedSiteTile ID="SPPinnedSiteTile1" runat="server" TileUrl="/_layouts/15/images/SharePointMetroAppTile.png" TileColor="#0072C6" />
<SharePoint:RobotsMetaTag ID="RobotsMetaTag1" runat="server" />
<SharePoint:PageTitle ID="PageTitle1" runat="server">
<asp:ContentPlaceHolder id="PlaceHolderPageTitle" runat="server">
<SharePoint:ProjectProperty ID="ProjectProperty1" Property="Title" runat="server" />
</asp:ContentPlaceHolder>
</SharePoint:PageTitle>
<SharePoint:SPShortcutIcon ID="SPShortcutIcon1" runat="server" IconUrl="/_layouts/15/images/favicon.ico?rev=23" />
<SharePoint:StartScript ID="StartScript1" runat="server" />
<SharePoint:CssLink ID="CssLink1" runat="server" Version="15" />
<SharePoint:CacheManifestLink ID="CacheManifestLink1" runat="server" />
<SharePoint:ScriptLink ID="ScriptLink1" Language="javascript" Name="core.js" OnDemand="true" runat="server" Localizable="false" />
<SharePoint:ScriptLink ID="ScriptLink2" Language="javascript" Name="menu.js" OnDemand="true" runat="server" Localizable="false" />
<SharePoint:ScriptLink ID="ScriptLink3" Language="javascript" Name="callout.js" OnDemand="true" runat="server" Localizable="false" />
<SharePoint:ScriptLink ID="ScriptLink4" Language="javascript" Name="sharing.js" OnDemand="true" runat="server" Localizable="false" />
<SharePoint:ScriptLink ID="ScriptLink5" Language="javascript" Name="suitelinks.js" OnDemand="true" runat="server" Localizable="false" />
<SharePoint:CustomJSUrl ID="CustomJSUrl1" runat="server" />
<SharePoint:SoapDiscoveryLink ID="SoapDiscoveryLink1" runat="server" />
<SharePoint:AjaxDelta ID="DeltaPlaceHolderAdditionalPageHead" Container="false" runat="server">
<asp:ContentPlaceHolder ID="PlaceHolderAdditionalPageHead" runat="server" />
<SharePoint:DelegateControl ID="DelegateControl1" runat="server" ControlId="AdditionalPageHead" AllowMultipleControls="true" />
<asp:ContentPlaceHolder ID="PlaceHolderBodyAreaClass" runat="server" />
</SharePoint:AjaxDelta>
<SharePoint:CssRegistration ID="CssRegistration1" Name="Themable/corev15.css" runat="server" />
</head>
<body>
<div>
<SharePoint:ImageLink ID="ImageLink1" runat="server" />
</div>
<SharePoint:SPNoScript ID="SPNoScript1" runat="server" />
<SharePoint:SPClientIDGenerator ID="SPClientIDGenerator1" runat="server" ServerControlID="DeltaPlaceHolderMain;DeltaPlaceHolderPageTitleInTitleArea;DeltaPlaceHolderUtilityContent" />
<SharePoint:SharePointForm ID="SharePointForm1" runat="server" onsubmit="if (typeof(_spFormOnSubmitWrapper) != 'undefined') {return _spFormOnSubmitWrapper();} else {return true;}">
<script type="text/javascript"> var submitHook = function () { return false; }; theForm._spOldSubmit = theForm.submit; theForm.submit = function () { if (!submitHook()) { this._spOldSubmit(); } }; </script>
<SharePoint:AjaxDelta ID="DeltaSPWebPartManager" runat="server">
<WebPartPages:SPWebPartManager ID="SPWebPartManager1" runat="Server" />
</SharePoint:AjaxDelta>
<asp:ScriptManager ID="ScriptManager" runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true" />
<SharePoint:AjaxDelta ID="DeltaDelegateControls" runat="server">
<SharePoint:DelegateControl ID="DelegateControl2" runat="server" ControlId="GlobalNavigation" />
<SharePoint:DelegateControl ID="DelegateControl3" ControlId="GlobalSiteLink3" Scope="Farm" runat="server" Visible="false" />
</SharePoint:AjaxDelta>
<div id="TurnOnAccessibility" style="display: none" class="s4-notdlg noindex">
<a id="linkTurnOnAcc" href="javascript:void(0);" class="ms-accessible ms-acc-button" onclick="SetIsAccessibilityFeatureEnabled(true);UpdateAccessibilityUI();document.getElementById('linkTurnOffAcc').focus();return false;">
<SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" Text="<%$Resources:wss,master_turnonaccessibility%>" EncodeMethod="HtmlEncode" /></a>
</div>
<div id="TurnOffAccessibility" style="display: none" class="s4-notdlg noindex">
<a id="linkTurnOffAcc" href="javascript:void(0);" class="ms-accessible ms-acc-button" onclick="SetIsAccessibilityFeatureEnabled(false);UpdateAccessibilityUI();document.getElementById('linkTurnOnAcc').focus();return false;">
<SharePoint:EncodedLiteral ID="EncodedLiteral2" runat="server" Text="<%$Resources:wss,master_turnoffaccessibility%>" EncodeMethod="HtmlEncode" /></a>
</div>
<div class="s4-notdlg s4-skipribbonshortcut noindex">
<a id="A1" href="javascript:;" onclick="document.getElementById('startNavigation').focus();" class="ms-accessible ms-acc-button" accesskey="<%$Resources:wss,skipribbon_accesskey%>" runat="server">
<SharePoint:EncodedLiteral ID="EncodedLiteral3" runat="server" Text="<%$Resources:wss,skipRibbonCommandsLink%>" EncodeMethod="HtmlEncode" /></a>
</div>
<div class="s4-notdlg noindex">
<a id="A2" href="javascript:;" onclick="document.getElementById('mainContent').focus();" class="ms-accessible ms-acc-button" runat="server">
<SharePoint:EncodedLiteral ID="EncodedLiteral4" runat="server" Text="<%$Resources:wss,mainContentLink%>" EncodeMethod="HtmlEncode" /></a>
</div>
<div id="TurnOffAnimation" style="display: none;" class="s4-notdlg noindex">
<a id="linkTurnOffAnimation" href="javascript:void(0);" class="ms-accessible ms-acc-button" onclick="ToggleAnimationStatus();return false;">
<SharePoint:EncodedLiteral ID="EncodedLiteral5" runat="server" Text="<%$Resources:wss,master_disableanimation%>" EncodeMethod="HtmlEncode" /></a>
</div>
<div id="TurnOnAnimation" style="display: none;" class="s4-notdlg noindex">
<a id="linkTurnOnAnimation" href="javascript:void(0);" class="ms-accessible ms-acc-button" onclick="ToggleAnimationStatus();return false;">
<SharePoint:EncodedLiteral ID="EncodedLiteral6" runat="server" Text="<%$Resources:wss,master_enableanimation%>" EncodeMethod="HtmlEncode" /></a>
</div>
<a id="HiddenAnchor" href="javascript:;" style="display: none;"></a>
<!-- jquery reference and style reference -->
<!-- top menu bar starts here -->
<div id="suiteBar" class="ms-dialogHidden noindex" style="display:none">
<div id="suiteBarLeft">
<div class="ms-table ms-fullWidth">
<div class="ms-tableRow">
<div id="mydashboardmenu" class="s4-notdlg">
<div class="ms-tableCell ms-verticalAlignTop" style="display:none">
<SharePoint:AjaxDelta ID="DeltaPlaceHolderSearchArea" BlockElement="true" CssClass="ms-mpSearchBox ms-floatRight" runat="server">
<div id="searchInputBox">
<SharePoint:DelegateControl ID="DelegateControl5" runat="server" ControlId="SmallSearchInputBox" />
</div>
<asp:ContentPlaceHolder ID="PlaceHolderSearchArea" runat="server" Visible="false">
</asp:ContentPlaceHolder>
</SharePoint:AjaxDelta>
</div>
</div>
</div>
</div>
</div>
<div id="suiteBarRight">
<SharePoint:AjaxDelta runat="server" ID="DeltaSuiteBarRight" CssClass="ms-core-deltaSuiteBarRight" BlockElement="true">
<div id="welcomeMenuBox">
<wssuc:Welcome id="IdWelcome" runat="server" EnableViewState="false" />
</div>
<div id="suiteBarButtons">
<span class="ms-siteactions-root" id="siteactiontd">
<SharePoint:SiteActions runat="server" AccessKey="<%$Resources:wss,tb_SiteActions_AK%>" ID="SiteActionsMenuMain"
PrefixHtml=""
SuffixHtml=""
ImageUrl="/_layouts/15/images/spcommon.png?rev=23"
ThemeKey="spcommon"
MenuAlignment="Right"
MenuNotVisibleHtml="&nbsp;"
LargeIconMode="false">
<CustomTemplate>
<SharePoint:FeatureMenuTemplate ID="FeatureMenuTemplate1" runat="server"
FeatureScope="Site"
Location="Microsoft.SharePoint.StandardMenu"
GroupId="SiteActions"
UseShortId="true">
<SharePoint:MenuItemTemplate runat="server"
ID="MenuItem_ShareThisSite"
Text="<%$Resources:wss,siteactions_sharethissite%>"
Description="<%$Resources:wss,siteactions_sharethissitedescription%>"
MenuGroupId="100"
Sequence="110"
UseShortId="true"
PermissionsString="ViewPages"
PermissionMode="Any" />
<SharePoint:MenuItemTemplate runat="server" ID="MenuItem_EditPage"
Text="<%$Resources:wss,siteactions_editpage15%>"
Description="<%$Resources:wss,siteactions_editpagedescriptionv4%>"
ImageUrl="/_layouts/15/images/ActionsEditPage.png?rev=23"
MenuGroupId="200"
Sequence="210"
PermissionsString="EditListItems"
ClientOnClickNavigateUrl="javascript:ChangeLayoutMode(false);" />
<SharePoint:MenuItemTemplate runat="server" ID="MenuItem_CreatePage"
Text="<%$Resources:wss,siteactions_addpage15%>"
Description="<%$Resources:wss,siteactions_createpagedesc%>"
ImageUrl="/_layouts/15/images/NewContentPageHH.png?rev=23"
MenuGroupId="200"
Sequence="220"
UseShortId="true"
ClientOnClickScriptContainingPrefixedUrl="OpenCreateWebPageDialog('~siteLayouts/createwebpage.aspx')"
PermissionsString="AddListItems, EditListItems"
PermissionMode="All" />
<SharePoint:MenuItemTemplate runat="server" ID="MenuItem_Create"
Text="<%$Resources:wss,siteactions_addapp15%>"
Description="<%$Resources:wss,siteactions_createdesc%>"
MenuGroupId="200"
Sequence="230"
UseShortId="true"
ClientOnClickScriptContainingPrefixedUrl="GoToPage('~siteLayouts/addanapp.aspx')"
PermissionsString="ManageLists, ManageSubwebs"
PermissionMode="Any" />
<SharePoint:MenuItemTemplate runat="server" ID="MenuItem_ViewAllSiteContents"
Text="<%$Resources:wss,quiklnch_allcontent_15%>"
Description="<%$Resources:wss,siteactions_allcontentdescription%>"
ImageUrl="/_layouts/15/images/allcontent32.png?rev=23"
MenuGroupId="200"
Sequence="240"
UseShortId="true"
ClientOnClickNavigateUrl="~siteLayouts/viewlsts.aspx"
PermissionsString="ViewFormPages"
PermissionMode="Any" />
<SharePoint:MenuItemTemplate runat="server" ID="MenuItem_ChangeTheLook"
Text="<%$Resources:wss,siteactions_changethelook15%>"
Description="<%$Resources:wss,siteactions_changethelookdesc15%>"
MenuGroupId="300"
Sequence="310"
UseShortId="true"
ClientOnClickNavigateUrl="~siteLayouts/designgallery.aspx"
PermissionsString="ApplyThemeAndBorder,ApplyStyleSheets,Open,ViewPages,OpenItems,ViewListItems"
PermissionMode="All" />
<SharePoint:MenuItemTemplate runat="server" ID="MenuItem_Settings"
Text="<%$Resources:wss,siteactions_settings15%>"
Description="<%$Resources:wss,siteactions_sitesettingsdescriptionv4%>"
ImageUrl="/_layouts/15/images/settingsIcon.png?rev=23"
MenuGroupId="300"
Sequence="320"
UseShortId="true"
ClientOnClickScriptContainingPrefixedUrl="GoToPage('~siteLayouts/settings.aspx')"
PermissionsString="EnumeratePermissions,ManageWeb,ManageSubwebs,AddAndCustomizePages,ApplyThemeAndBorder,ManageAlerts,ManageLists,ViewUsageData"
PermissionMode="Any" />
<SharePoint:MenuItemTemplate runat="server" ID="MenuItem_SwitchToMobileView"
Visible="false"
Text="<%$Resources:wss,siteactions_switchtomobileview%>"
Description="<%$Resources:wss,siteactions_switchtomobileviewdesc%>"
MenuGroupId="300"
Sequence="330"
UseShortId="true"
ClientOnClickScript="var mswlh = window.location.href; if (mswlh.indexOf('?')==-1) { window.location = mswlh + '?mobile=1'; } else { window.location = mswlh + '&mobile=1'; }" />
</SharePoint:FeatureMenuTemplate>
</CustomTemplate>
</SharePoint:SiteActions>
</span>
<span id="ms-help">
<SharePoint:ThemedClusteredHoverImage
runat="server"
ID="TopHelpLink"
ThemeKey="spintl"
TouchMode="true"
TouchModeWidth="30"
TouchModeHeight="30"
TouchModePaddingTop="7"
TouchModePaddingRight="7"
TouchModePaddingBottom="7"
TouchModePaddingLeft="7"
ImageUrl="/_layouts/15/~lcid/images/spintl.png"
Width="16"
Height="16"
OffsetX="19"
OffsetY="1"
HoverOffsetX="1"
HoverOffsetY="1"
NavigateUrl="javascript:void(0);"
onclick="TopHelpButtonClick('HelpHome',event);return false"
AlternateText="<%$Resources:wss,multipages_helplink_text%>"
AccessKey="<%$Resources:wss,multipages_helplink_accesskey%>"
ToolTip="<%$Resources:wss,multipages_helplink_text%>" />
</span>
</div>
</SharePoint:AjaxDelta>
</div>
</div>
<!-- top menu bar Ends here -->
<div id="ms-hcTest"></div>
<!--top secound bar starts here ex.page,browser -->
<div id="s4-ribbonrow" style="display:none;">
<div id="globalNavBox" class="noindex">
<div id="ribbonBox">
<div id="s4-ribboncont">
<SharePoint:AjaxDelta ID="DeltaSPRibbon" BlockElement="true" runat="server">
<SharePoint:DelegateControl runat="server" ID="GlobalDelegate0" ControlId="GlobalSiteLink0" />
<SharePoint:SPRibbon ID="SPRibbon1"
runat="server"
PlaceholderElementId="RibbonContainer"
CssFile="">
<SharePoint:SPRibbonPeripheralContent ID="SPRibbonPeripheralContent1"
runat="server"
CssClass="ms-core-defaultFont ms-dialogHidden"
Location="TabRowLeft">
</SharePoint:SPRibbonPeripheralContent>
<SharePoint:SPRibbonPeripheralContent
runat="server"
Location="TabRowRight"
ID="RibbonTabRowRight"
CssClass="s4-trc-container s4-notdlg ms-core-defaultFont">
<SharePoint:SPSharePromotedActionButton ID="SPSharePromotedActionButton1" runat="server" />
<SharePoint:DelegateControl ID="DelegateControl4" runat="server" ControlId="PromotedActions" AllowMultipleControls="true" />
<SharePoint:SPSyncPromotedActionButton ID="SPSyncPromotedActionButton1" runat="server" />
<SharePoint:PageStateActionButton ID="PageStateActionButton" runat="server" Visible="false" />
<span id="fullscreenmodebox" class="ms-qatbutton">
<span id="fullscreenmode">
<SharePoint:ThemedClusteredHoverImage
runat="server"
ID="fullscreenmodeBtn"
ThemeKey="spcommon"
TouchMode="true"
TouchModeWidth="30"
TouchModeHeight="30"
TouchModePaddingLeft="7"
TouchModePaddingTop="7"
TouchModePaddingRight="7"
TouchModePaddingBottom="7"
ImageUrl="/_layouts/15/images/spcommon.png?rev=23"
Width="16"
Height="16"
OffsetX="143"
OffsetY="178"
HoverOffsetX="125"
HoverOffsetY="178"
NavigateUrl="javascript:void(0);"
onclick="SetFullScreenMode(true);PreventDefaultNavigation();return false;"
AlternateText="<%$Resources:wss,multipages_fullscreenmodelinkalt_text%>"
ToolTip="<%$Resources:wss,multipages_fullscreenmodelinkalt_text%>" />
</span>
<span id="exitfullscreenmode" style="display: none;">
<SharePoint:ThemedClusteredHoverImage
runat="server"
ID="exitfullscreenmodeBtn"
ThemeKey="spcommon"
TouchMode="true"
TouchModeWidth="30"
TouchModeHeight="30"
TouchModePaddingLeft="7"
TouchModePaddingTop="7"
TouchModePaddingRight="7"
TouchModePaddingBottom="7"
ImageUrl="/_layouts/15/images/spcommon.png?rev=23"
Width="16"
Height="16"
OffsetX="107"
OffsetY="178"
HoverOffsetX="179"
HoverOffsetY="96"
NavigateUrl="javascript:void(0);"
onclick="SetFullScreenMode(false);PreventDefaultNavigation();return false;"
AlternateText="<%$Resources:wss,multipages_fullscreenmodelinkalt_text%>"
ToolTip="<%$Resources:wss,multipages_fullscreenmodelinkalt_text%>" />
</span>
</span>
<SharePoint:DeveloperDashboard ID="DeveloperDashboard1" runat="server" />
<SharePoint:DeveloperDashboardLauncher
ID="DeveloperDashboardLauncher"
ThemeKey="spcommon"
TouchMode="true"
TouchModeWidth="30"
TouchModeHeight="30"
TouchModePaddingLeft="7"
TouchModePaddingTop="7"
TouchModePaddingRight="7"
TouchModePaddingBottom="7"
NavigateUrl="javascript:return false"
OnClick="ToggleDeveloperDashboard(window.g_ddHostBase);return false"
OuterCssClass="ms-dd-button ms-qatbutton"
runat="server"
ImageUrl="/_layouts/15/images/spcommon.png?rev=23"
AlternateText="<%$Resources:wss,multipages_launchdevdashalt_text%>"
ToolTip="<%$Resources:wss,multipages_launchdevdashalt_text%>"
OffsetX="145"
OffsetY="196"
HoverOffsetX="163"
HoverOffsetY="196"
Height="16"
Width="16" />
</SharePoint:SPRibbonPeripheralContent>
</SharePoint:SPRibbon>
</SharePoint:AjaxDelta>
</div>
<SharePoint:AjaxDelta ID="DeltaSPNavigation" runat="server">
<asp:ContentPlaceHolder ID="SPNavigation" runat="server">
<SharePoint:DelegateControl runat="server" ControlId="PublishingConsole" ID="PublishingConsoleDelegate" />
</asp:ContentPlaceHolder>
</SharePoint:AjaxDelta>
</div>
<SharePoint:AjaxDelta ID="DeltaWebPartAdderUpdatePanelContainer" BlockElement="true" CssClass="ms-core-webpartadder" runat="server">
<div id="WebPartAdderUpdatePanelContainer">
<asp:UpdatePanel
ID="WebPartAdderUpdatePanel"
UpdateMode="Conditional"
ChildrenAsTriggers="false"
runat="server">
<ContentTemplate>
<WebPartPages:WebPartAdder ID="WebPartAdder" runat="server" />
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="WebPartAdder" />
</Triggers>
</asp:UpdatePanel>
</div>
</SharePoint:AjaxDelta>
</div>
</div>
<SharePoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server"
PermissionsString="AddListItems" AuthenticationRestrictions="AuthenticatedUsersOnly">
<script type="text/javascript">
document.getElementById("s4-ribbonrow").style.display = "block";
document.getElementById("suiteBar").style.display = "block";
/*document.getElementById("Span1").style.display = "block";*/
</script>
</SharePoint:SPSecurityTrimmedControl>
<div id="s4-workspace" class="ms-core-overlay">
<!--Header Container-->
<div class="PageWrap">
<!--Header for CMA Master -->
<!-- Header Part closed here-->
<div id="s4-bodyContainer">
<!--Header Title Starts Heare -->
<div id="headercontainer" style="display: none">
<div id="s4-titlerow"
class="ms-dialogHidden s4-titlerowhidetitle">
<div id="titleAreaBox"
class="ms-noList ms-table ms-core-tableNoSpace">
<div id="titleAreaRow"
class="ms-tableRow">
<div id="siteIcon" class="ms-tableCell ms-verticalAlignTop">
<SharePoint:AjaxDelta ID="DeltaSiteLogo" BlockElement="true" runat="server">
<SharePoint:SPSimpleSiteLink CssClass="ms-siteicon-a" runat="server" ID="onetidProjectPropertyTitleGraphic">
<SharePoint:SiteLogoImage CssClass="ms-siteicon-img" name="onetidHeadbnnr0" id="onetidHeadbnnr2" LogoImageUrl="/_layouts/15/images/siteIcon.png?rev=23" runat="server"/>
</SharePoint:SPSimpleSiteLink>
</SharePoint:AjaxDelta>
</div>
<!-- My Page Title Starts here -->
<div id="mypagetitle" class="C13PageTitle">
<h1 id="pageTitle" class="ms-core-pageTitle">
<SharePoint:AjaxDelta ID="DeltaPlaceHolderPageTitleInTitleArea" runat="server">
<asp:ContentPlaceHolder ID="PlaceHolderPageTitleInTitleArea" runat="server">
<SharePoint:SPTitleBreadcrumb ID="SPTitleBreadcrumb1"
runat="server"
RenderCurrentNodeAsLink="true"
SiteMapProvider="SPContentMapProvider"
CentralAdminSiteMapProvider="SPXmlAdminContentMapProvider">
<PathSeparatorTemplate>
<SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow1" runat="server" />
</PathSeparatorTemplate>
</SharePoint:SPTitleBreadcrumb>
</asp:ContentPlaceHolder>
</SharePoint:AjaxDelta>
<SharePoint:AjaxDelta BlockElement="true" ID="DeltaPlaceHolderPageDescription" CssClass="ms-displayInlineBlock ms-normalWrap" runat="server">
<a href="javascript:;" id="ms-pageDescriptionDiv" style="display: none;">
<span id="ms-pageDescriptionImage"> </span>
</a>
<span class="ms-accessible" id="ms-pageDescription">
<asp:ContentPlaceHolder ID="PlaceHolderPageDescription" runat="server" />
</span>
<SharePoint:ScriptBlock ID="ScriptBlock2" runat="server">
_spBodyOnLoadFunctionNames.push("setupPageDescriptionCallout");
_spBodyOnLoadFunctionNames.push("Languagestyle");
</SharePoint:ScriptBlock>
</SharePoint:AjaxDelta>
</h1>
</div>
<!-- My Page Title Ends here -->
</div>
</div>
</div>
</div>
<div id="contentRow">
<div id="contentBox"
aria-live="polite" aria-relevant="all">
<div id="notificationArea" class="ms-notif-box"></div>
<SharePoint:AjaxDelta ID="DeltaPageStatusBar" BlockElement="true" runat="server">
<div id="pageStatusBar"></div>
</SharePoint:AjaxDelta>
<SharePoint:AjaxDelta ID="DeltaPlaceHolderMain" BlockElement="true" IsMainContent="true" runat="server">
<a id="mainContent" name="mainContent" tabindex="-1"></a>
<asp:ContentPlaceHolder ID="PlaceHolderMain" runat="server" />
</SharePoint:AjaxDelta>
</div>
<SharePoint:AjaxDelta ID="DeltaFormDigest" BlockElement="true" runat="server">
<asp:ContentPlaceHolder ID="PlaceHolderFormDigest" runat="server">
<SharePoint:FormDigest ID="FormDigest1" runat="server" />
</asp:ContentPlaceHolder>
</SharePoint:AjaxDelta>
<asp:ContentPlaceHolder ID="PlaceHolderSiteName" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderHorizontalNav" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderPageImage" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderTitleLeftBorder" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderMiniConsole" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderTitleRightMargin" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderTitleAreaSeparator" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderNavSpacer" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderLeftNavBarBorder" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderBodyLeftBorder" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderBodyRightMargin" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderTitleAreaClass" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderGlobalNavigation" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="PlaceHolderGlobalNavigationSiteMap" runat="server" Visible="false" />
<asp:ContentPlaceHolder ID="WSSDesignConsole" runat="server" Visible="false" />
</div>
</div>
</div>
<!--FooterContainer Starts Here -->
<!-- FooterContainer Ends Here -->
</div>
</div>
</SharePoint:SharePointForm>
<SharePoint:AjaxDelta ID="DeltaPlaceHolderUtilityContent" runat="server">
<asp:ContentPlaceHolder ID="PlaceHolderUtilityContent" runat="server" />
</SharePoint:AjaxDelta>
<SharePoint:ScriptBlock ID="ScriptBlock1" runat="server">
var g_Workspace = "s4-workspace";
</SharePoint:ScriptBlock>
</body>
</SharePoint:sphtmltag>
4.Edit Element.xml file under the module as highlighted below.
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="CustomMaster" Url="_catalogs/masterpage">
<File Path="CustomMaster\CustomMaster.master" Url="CustomMaster.master" Type="GhostableInLibrary" />
</Module>
</Elements>
5.Add a new feature with site scope, and include the custommaster module in the feature.
6.Now deploy the solution.You can find the custom.master in master page gallery.
Thanks.
ReplyDeleteA generator efficiently converts energy into power, ensuring reliable functionality with minimal environmental impact.Generator
ReplyDeletethanks for sharing Digital Marketing
ReplyDelete