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  :   12     Total  :    17746

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 January 15, 00:25
How To Enable Target Value And Actual Value In #D3 Gauge Chart

Twitter January 15, 00:24
How To Open #SharePoint List Hyperlink Column In Modal #Popup Window

Twitter January 15, 00:24
Quick Introduction To #Asp.NetCore And It’s Features

Twitter January 15, 00:22
How To Configure #PerformancePoint Services To Use Secure Store In #SharePoint 2013

Twitter January 15, 00:21
How To Block Or Disable #Office365 Services

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