In this article we will be seeing how to remove the theme from the SharePoint web using SharePoint object model. The current theme will be changed to Default(No theme). Go to Site Actions => Site Settings => Look and Feel => Site theme.
Programmatically change the site theme:
ThmxTheme class: Represents a Microsoft Office XML theme file. The methods and properties of this class enable read and write operations on the theme name, the color list, and the font list. For more information refer http://msdn.microsoft.com/en-us/library/ee658367.aspx. ThmxTheme.RemoveThemeFromWeb Method: Sets the theme on the web to none. For more information refer http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.utilities.thmxtheme.removethemefromweb.aspx.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: