Geeks With Blogs
SharePoint Wiki! Sharing is gaining...


Manually/Through UI

On the top link bar, click Site Settings.

On the Site Management page, in the Customization section, click Apply theme to site.

On the Apply Theme to Web Site page, select No Theme(Default) from the list.

Click Apply.


Through Script

function Apply-SPDefaultTheme([string]$SiteUrl, [string]$webName)

{

$site = new-object Microsoft.SharePoint.SPSite($SiteUrl)

$web = $site.OpenWeb($webName)


$theme = [Microsoft.SharePoint.Utilities.ThmxTheme]::RemoveThemeFromWeb($web,$false)

$web.Update()

$web.Dispose()

$site.Dispose()

}

After looking in the SPTHEMES.XML file found in the C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\1033 folder, you do see there is a theme with a theme name of "none". Since there is no "default" theme in 2010. So make sure if you wanna reset it to default you know that there is no default, you need to select 'none' :)

Posted on Friday, September 21, 2012 9:03 AM | Back to top


Comments on this post: Automatically Reset Theme To Default, SharePoint 2010

# re: Automatically Reset Theme To Default, SharePoint 2010
Requesting Gravatar...
Thanks very much! This tip helped me recover my site's layout perfectly.
Left by GGB on Jan 30, 2013 3:50 AM

Your comment:
 (will show your gravatar)


Copyright © KunaalKapoor | Powered by: GeeksWithBlogs.net