SharePoint Pals
 | Sign In
How To Roll back changes made in a Custom Master Page by SharePoint Designer to Normal State in SharePoint 2010
by Gopi K Baskar 20 Jan 2014
SharePoint Consultant
Today  :   5     Total  :    16472

Customizing a SharePoint Master Page is easier with SharePoint Designer when compared to provisioning a customized Master Page via Visual Studio. But if you would like to know how to bring it back to Visual Studio, follow the procedure to roll back the changes performed in a Master Page.

I have developed a custom master page and deployed it in SharePoint 2010 and set as a default master page with Feature. The Custom master page while provisioned in a feature will be stored in %Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\<feature name> folder.

Whenever, I created a new site, the feature receiver automatically sets this Master Page as a default master page. By default, SharePoint loads the master page from 14 hive folder until it’s edited through SharePoint Designer.

For some reason, if you have customized the master page in SharePoint Designer, SharePoint stores a modified version of the master page in the content database and it ignores the file deployed in 14 hive. This process is called as Unghosting. This process breaks the reference of the master page file on the 14 hive.

If you would like to perform any changes to your Master Page after you have unghosted , the only option possible is to perform it with SharePoint Designer. If you would like continue the changes to be performed with Feature deployment you have to roll back the changes performed in the master page and reset it to its original state.

Note : Ensure that you have performed all the changes that you have performed with designer is updated in your newly deployed Master Page, else you will lose all the changes that you have performed with SharePoint Designer.

To roll back the changes, select the Master Page that you have customized in the SharePoint Designer. This would enable the “Reset to Site Definition” button in the Ribbon. Click that button. This would create a copy of that Master Page and resets the Master Page to the last deployed version (deployed via Feature.)


After doing this, I have deployed the custom master page feature and it’s working as expected.

blog comments powered by Disqus

SharePoint Pals

SharePoint Pals, a community portal for SharePoint developers, Administrators and End Users. Let's join hands and share the point together.
Read this on mobile


Angular Js Training In Chennai
Advanced Angular Js training with real world developer scenarios
Angular Js, Web Api and Ionic for .Net Developers
All in one client side application development for .Net developers
Angular Js For SharePoint Developers
Get ready for the future. Its no more just C#

Get Connected

SharePoint Resources

SharePoint 2013 and 2010 Web Parts
Free Web Parts with Source Code for SharePoint Community

SharePoint 2013 Books and Tutorials
Collection of free SharePoint 2013 books and tutorials (eBooks, pdfs)

Supported By

Contribute your article and be eligible for a one month Free Subscription for Plural Sight. The Author of the most popular New Article (published in the previous month) will be awarded with a Free One month Plural Sight Subscription. Article can be sent to in a word document.

Related Resources

Recent Tweets

Twitter October 23, 22:21
How to Add/Remove User Custom Actions (in Site Actions Menu) Programmatically using CSOM PNP in SharePoint -

Twitter October 21, 21:34
How to Add a JS Link Reference to the Display Form or Any other ASPX Programmatically using CSOM PNP in SharePoint -

Twitter October 20, 13:01
How to Add a JS Link Reference to the NewForm and EditForm Programmatically using CSOM PNP in SharePoint Office 365-

Twitter October 12, 12:15
How to Deploy Provider Hosted Apps (Add-Ins) by App Stapling in SharePoint Office 365 -

Twitter October 11, 13:39
How to Deploy Provider HostedApp programmatically using CSOM in SharePoint Office 365 Activating Developer Feature -

Follow us @SharePointPals
Note: For Customization and Configuration, CheckOutRecent Tweets Documentation