Thursday, June 18, 2009

How to customize the Theme in SharePoint

Hi All,

Many times we require customizing theme of SharePoint site. For Creating Theme we first need to create one folder in the 12\TEMPLATE\THEMES Folder under 12 hive structure.

Copy any of the folders from that THEMES folder and give that new folder your appropriate unique name. Let’s say we give the new folder “XTheme” as name of it. Ultimately this folder will contains css files, images , color of font and all.

Now you need to find one file in the folder that you have copied, check for .inf file and rename it to the foldername.inf.

Now open this .inf file and give the same name to the to the title in the [info] and [titles] sections of the file.

Now modify and make the changes according to your business need. Colors, styles, images and everything.

You now also need to add one image especially for preview purpose when you will view this from Site Theme option.

Copy your image to the 12\TEMPLATE\IMAGES folder. Let’s say we call it as XTheme.gif

Now find one more file at this location 12\TEMPLATE\LAYOUTS\1033 which is SPTHEMES.xml. You need to add this THEME as templates collection like this.

<Templates>
<TemplateID>XTheme</TemplateID>
<DisplayName> XTheme </DisplayName>
<Description>This is my new THEME</Description>
<Thumbnail>images/XTheme.gif</Thumbnail>
<Preview>images/XTheme.gif</Preview>
</Templates>


Now reset the IIS, I guess it will not require but then also just to be on safer side, reset the IIS and now you should be able to change the Site Theme to the your custom theme.

That’s it. Your job is done.

No comments:




Share your SharePoint Experiences with us...
As good as the SharePointKings is, we want to make it even better. One of our most valuable sources of input for our Blog Posts comes from ever enthusiastic Visitors/Readers. We welcome every Visitor/Reader to contribute their experiences with SharePoint. It may be in the form of a code stub, snippet, any tips and trick or any crazy thing you have tried with SharePoint.
Send your Articles to sharepointkings@gmail.com with your Profile Summary. We will Post them. The idea is to act as a bridge between you Readers!!!

If anyone would like to have their advertisement posted on this blog, please send us the requirement details to sharepointkings@gmail.com