After MOSS SP2 Deployment have faced some problem on the theme, so we need to edit the CSS format then to make it take effect on all sites.
now the problem come in …we have so many sites and subsites how going to get it done? as you know we need to reapply the theme then the CSS only take effect.
Luckily have some good utility tool at coplex , is so call retheme.exe.
this help a lot, you can download it from
CodePlex.
Below is the coding from the Codeplex reTheme :)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
namespace reTheme
{
class Program
{
static void Main(string[] args)
{
string siteUrl;
if (args.Length == 0)
{
Console.Write("Site Collection URL:");
siteUrl = Console.ReadLine();
}
else
{
siteUrl = args[0];
}
try
{
using (SPSite site = new SPSite(siteUrl))
{
foreach (SPWeb web in site.AllWebs)
{
Console.Write(web.ServerRelativeUrl + ": ");
try
{
string themeName = web.Theme;
web.ApplyTheme("");
web.ApplyTheme(themeName);
Console.WriteLine("OK");
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
}
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
}
}