Skip to content

Custom Editable Site Theme for Windows SharePoint Server (WSS) 2007

by on June 8, 2011

Duplicate a theme

  1. Go to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\THEMES
  2. copy a folder and rename (ex. MYTHEME) Note: Theme name must be uppercase and contain no characters such as dashes
  3. in the folder, edit .inf file (setup file)
    1. rename to same name as theme (i.e. mytheme.inf)
    2. Change [info] > Title to new theme name
    3. Change [titles] > all values to new theme name

Force theme edits to appear immediately (all sites)

  1. Create a copy of theme.css in your new theme folder and rename to “themeedit.css”
  2. Create new theme folder at C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033\STYLES\ using the new theme name
  3. Move the themeedit.css to the C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033\STYLES\MYTHEME folder NOTE: You can move images you would like to edit and/or continue to use into this folder – you can also steal images from other themes (such as grey images from Jet)
  4. In the original theme.css file, remove all css and replace with the following
  5. @import "/_layouts/1033/styles/MYTHEME/themeedit.css";
  6. Save files

Make theme available to theme list in SharePoint

  1. Go to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033\
  2. Open spthemes.xml
  3. duplicate a <template>…..</template> section of the html including inner content
  4. Edit xml nodes to reflect the new theme name
    1. TemplateID
    2. DisplayName
    3. Description
    4. Thumbnail (ex: images/thmytheme.gif) Only needed if you want an accurate thumbnail image – see “Create a thumbnail preview for the theme”
    5. Preview (ex: images/thmytheme.gif) Only needed if you want an accurate thumbnail image – see “Create a thumbnail preview for the theme”
  5. You should now be able to see the theme by going to the SharePoint site

Create a thumbnail preview for the theme

  1. once your theme is mostly done, create a screenshot of the theme and save it as “thmytheme.gif”
  2. Crop & resize to 375px x 231px
  3. Put theme thumbnail in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\IMAGES
  4. If you have not edited the thumbnail name in the xml theme file, Open C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033\spthemes.xml and edit
    1. Thumbnail = Thumbnail image name
    2. Preview = Thumbnail image name
Advertisements
3 Comments
  1. David Harnden permalink

    ah hah, thank you! I was wondering how do do that…

    also, dude, gettiing the theme library edited…

    YOU ROCK!

    thanks Emerson Bruce

    David

  2. To add custom HTML tags such as meta description, keywords, and titles, you will want to edit the page in SharePoint Designer. We first need to start be verifying the existing page and template are in good form and readable by SharePoint. Skipping this step can lead to erroneous error.
    1) Open SharePoint Designer
    2) Edit in Advanced Mode
    3) Goto Design View — This will test the pages and all problems denoted need corrected.
    4) Go to code view and add the custom Title in “asp:Content “ named “PlaceHolderPageTitle”. This should be the Content, omit the title tags.
    5) META Description goes in the “asp:Content” named “PlaceHolderAdditionalPageHead”. This will be the actual HTML code.
    When I followed the directions provided by others, I had a small problem in the ASP which provided an accurate error by following steps 1-3.

  3. This post is specifically about editing the theme, not the master page – although these are usually the two main peices of the puzzle.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: