Steps to create a custom master page in SharePoint using design manager

These days most of the user want to use their own master page in SharePoint 2013 Or Office 365. Here we will discuss how to create a custom master page using design manager in SharePoint Online/2013/2016.

Step by step we will see how to create custom master page in SharePoint 2013 using design manager.

SharePoint Design Manager

Design Manager is SharePoint 2013 is a new feature which can be very useful for SharePoint designers. With SharePoint Design Manger you can now create a custom SharePoint Master Page out of simple Html Page Template in SharePoint 2013/2016 or SharePoint Online.

Here is Master Page that I will use.

create master page in sharepoint 2013 using design manager
create master page in sharepoint 2013 using design manager

The Design Manager is not activated by default in SharePoint 2013/2016 Or in Office 365.

1. Activate the feature “SharePoint Server Publishing Infrastructure” present in the site collection level in SharePoint Online site. This can be navigated as Settings -> Site settings -> Site collection features (under Site Collection Administration) -> SharePoint Server Publishing Infrastructure -> Click on Activate.

create master page sharepoint online design manager
create master page SharePoint online design manager

2. Once the site collection feature has been activated in the above step, then navigate to the subsite, and activate the Site Feature –> “SharePoint Server Publishing“. This can be navigated as – Settings -> Site settings -> Manage site features (under Site Actions) -> SharePoint Server Publishing -> Click on Activate

create master page in sharepoint 2013 using design manager
create master page in sharepoint 2013 using design manager

3. Now we can see that the Design Manager is activated and is available in the Site Settings page. Go to Site Setting -> Look and Feel ->Design Manager

add an html Master Page to SharePoint 2013 using Design Manager
add an html Master Page to SharePoint 2013 using Design Manager

Create a custom master page in SharePoint using Design Manager

Now, let us see how to create a custom master page in SharePoint using design manager.

1. Upload HTML Master Page in Master Page Gallery in SharePoint Online or SharePoint 2013/2016.

create custom master page in sharepoint online
create custom master page in sharepoint online

2. Add the Required Scripts, CSS, Images and other files.

create custom master page in sharepoint 2013 step by step
create custom master page in sharepoint 2013 step by step

3. Navigate to Design Manager (Settings- >Look and Feel – > Design Manager)

sharepoint branding 2013 tutorial
sharepoint branding 2013 tutorial

4. In Design Manager select 4 option Edit Master Pages.

sharepoint branding 2013 step by step
sharepoint branding 2013 step by step

5. Next Select Convert an Html file to a SharePoint master page like below:

how to create master page in sharepoint 2013 step by step
how to create master page in sharepoint 2013 step by step
create master page in sharepoint 2013 using design manager
create master page in sharepoint 2013 using design manager

6. After following above set you can see that a Html while get convert to master page. Refer below the screen.

sharepoint 2013 custom master page branding tutorial
sharepoint 2013 custom master page branding tutorial
sharepoint 2016 custom master page branding tutorial
sharepoint 2016 custom master page branding tutorial

7. After master page got generated need to go to Site settings- > Master Page Gallery and need to Publish HTML with major version. Refer below the screen.

create custom master page in sharepoint 2013 using sharepoint design manager
create custom master page in sharepoint 2013 using sharepoint design manager

8. Finally, we need to apply the new master page (Settings- >Look and Feel – > Design Manager- >Publish and Apply Design – > Assign master page to your site based on device channel.) Refer below screens.

create custom master page in sharepoint 2016 using sharepoint design manager
create custom master page in sharepoint 2016 using sharepoint design manager

In the Site Master Page Settings page, you can change the System Master page as our new custom master page in SharePoint Online/2013/2016.

create custom master page in sharepoint online using sharepoint design manager
create custom master page in sharepoint online using sharepoint design manager

Your Final Office 365 (O365) SharePoint Online site screen will look like below:

custom master page in sharepoint online using design manager
custom master page in sharepoint online using design manager

Site Title snippet in SharePoint custom master page

This SharePoint tutorial explains, how to add site title in SharePoint 2013/2016/Online custom master page. The Site title snippet can be generated from design manager in SharePoint 2013/2016/Online.

Recently we created a SharePoint 2013 custom master page and somehow we miss the site title snippet. So when we apply the custom master page in a SharePoint site collection, the SharePoint site title did not appear in the pages.

Below is the code you can add in the mycustommasterpage.html and the SharePoint site title will automatically reflect in the .master page.

<h1 id="pageTitle" class="ms-core-pageTitle">
<!–SPM:<SharePoint:AjaxDelta id="DeltaPlaceHolderPageSiteName" class="ms-core-navigation" runat="server">–>
<!–SPM:<asp:ContentPlaceHolder id="PlaceHolderSiteName" runat="server" >–>
<!–SPM:<SharePoint:SPLinkButton runat="server" NavigateUrl="~site/" id="onetidProjectPropertyTitle1″ >–>
<!–SPM:<SharePoint:ProjectProperty Property="Title" runat="server" />–>
<!–PS: Start of READ-ONLY PREVIEW (do not modify)–>Default Publishing Site<!–PE: End of READ-ONLY PREVIEW–>
<!–SPM:</SharePoint:SPLinkButton>–>
<!–SPM:</asp:ContentPlaceHolder>–>
<!–SPM:</SharePoint:AjaxDelta>–>
</h1>

But if you want to put in the master page (.master file) directly then you can add like below:

<SharePoint:ProjectProperty Property="Title" runat="server"/>

If you want that to come as a hyperlink, then you can use like below:

<SharePoint:SPSimpleSiteLink NavigateUrl="~sitecollection/" runat="server" id="sitelink"> </SharePoint:SPSimpleSiteLink>

Here, we learned how to use the SharePoint Site Title snippet in the SharePoint 2013/2016/Online custom master page, so that the Site title will appear in the sites, where the custom master page has been applied.

You may like following SharePoint master page tutorials:

Hopefully, this sharepoint branding article will help you to create a master page in SharePoint online using design manager. The say way we can create a custom master page using design manager in SharePoint Online or SharePoint 2013/2016.

  • >