In this post we will discuss how we will create master page using design manager in SharePoint 2013.
Master Page: It is the common layout of a page that we use in every pages.
Default Master Pages in Sharepoint 2013: “Seattle” and “Oslo”
For Example:- I have made a basic layout through HTML as shown in below figure, which will be used in every pages of the site in Sharepoint 2013.
– How to implement the above HTML page in Sharepoint 2013 as a Master Page with examples?
– First go to your respective Top level site. (i.e Asish Sharepoint Site).
– Then click on “setting” button at the top-right corner of the navigation bar.
– Then click on “Design Manager” as shown in below figure.
– If design manager is not available there, then go to the Site Collection features and activate “Sharepoint Publishing Infrastructure.”
– Then you will redirect to the below page.
– As shown in the above figure click on “Upload design files” which is marked in red color.
– Then copy the URL and paste the same in another tab to open Master page gallery as shown in above figure.
– When the the “Master page Gallery” window appears as shown in the above figure, then navigate to the FILES tab and create a NEW FOLDER(e.g I have created ASISH folder) to maintain your files in an organized way .
– Then click on your respective folder that you have created.(for e.g ASISH)
– When the above page will appear, then click on “FILES” tab and then click on “Upload Document” to add your HTML, js, css files and Images.
– Choose your HTML file and click on OK button
– Then the above form will appear where you fill the details as shown in above figure which is marked in red color.
– NOTE: When you are uploading a HTML file as an Master Page always choose the Content type as “HTML Master Page” and check on “Associated file” to create its corresponding master page as shown in below figures.
– Then Click on “Save” button.
– Your HTML page i.e “demomasterpage1.html”along with its master page i.e “demomasterpage1.master” has been created.
– Then we have to publish the corresponding html page by clicking on the drop down box near to the corresponding html page( as shown in below figure) to implement it in our pages.
– After completion of these steps then go the “Design Manager” and click on “Publish and Apply Design” then the below page will appear.
– Then you have to click on “Assign master pages to your site based on device channel” to implement it.
– Then the below form will appear where you have to select your master page.
– If you are selecting your master page on “Site master pages” level then your master page will reflect on your Custom pages.
– But if you are selecting your master page on “System Master Page” level then your master page will reflect in your Application Pages.
– And finally click on OK button.
– Then add a page to see whether the master page is reflecting or not.