WSS3SDK: How to customize themes

Source: Internet
Author: User
In WSS 3.0, we can create new themes for website applications or customize existing themes. This programming task shows how to customize an existing topic.

Procedure
1. CopyLocal_Drive: \ Program Files \ Common Files \ Microsoft Shared \ web server extensions \ 12 \ TEMPLATE \ THEMES under a topic folder, and give it a unique name. In this example, we name it MyTheme. This folder contains Cascading Style Sheet (CSS) files, image files, and files required for defining other styles, styles, formats, colors, and other user interface (UI) elements in the topic.

2. Find the. inf file in the newly copied folder and rename it as the same name as the folder.

3. Open the. inf file and[Info]And[Title]The section name is also the same as the file name.

4. Customize the style in the CSS file in the folder as needed.

In the following example, THEME. CSS is modified to change the color of the navigation area. . Ms-navframe {
Background: #009999;
}
. Ms-navline {
Border-bottom: 1px solid #8D4D03;
}
. Ms-nav. ms-navwatermark {
Color: #008999;
}

5. Use our favorite image processing software to modify image files in this folder.
6. Create an image for the thumbnail and preview image of the custom topic and place it inLocal_Drive: \ Program Files \ Common Files \ Microsoft Shared \ web server extensions \ 12 \ TEMPLATE \ IMAGES directory. In this example, the file name is mypreview.gif.
7. Add a topic template to the SPTHEMES. XML file, which determines which topics are available on the topic selection page of the site. This file is located inLocal_Dirve: \ Program Files \ Common Files \ Microsoft Shared \ web server extensions \ 12 \ TEMPLATE \ LAYOUTS \ 2052 directory.
The following example specifies a template for the custom topic above.
XML <Templates>
<TemplateID> mytheme </TemplateID>
<DisplayName> My Theme </DisplayName>
<Description> Description </Description>
<Thumbnail> images/myPreview.gif </Thumbnail>
<Preview> images/myPreview.gif </Preview>
</Templates>

8. Enter iisreset in the command prompt to restart IIS, so that the custom theme we created can appear in the list on the selected theme page and be applied to the SharePoint website.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.