Create a Sharepoint style (creating a Sharepoint theme)

Source: Internet
Author: User
You can change the style of a page by color or image. However, the topic is only composed of CSS files and some images. The layout of the page (such as the navigation bar) is controlled by the template page. The following steps create a Sharepoint theme (SharePoint theme) 1. Find a template topic and copy it to a new location. Location [c: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ template \ themes] 2. Modify the subject to copy and replace the corresponding image. 3. Add the style configuration information to the SharePoint site style configuration file. A. Open c: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ template \ layouts \ 1033 \ spthemes. xml B. Add the following section for your new style

< Templates >
< Templateid > Newdirectoryname </ Templateid >
< Displayname > Theme display name </ Displayname >
< Description > Give description of the theme </ Description >
< Thumbnail > Images/customimage.png </ Thumbnail >
< Preview > Images/pagepreview.gif </ Preview >
</ Templates >

4. Restart IIS (START-> Run-> cmd-> iisreset) and apply the new style. Note: during deployment, the templateid in the configuration file should correspond to the style directory name.

 

Themes re-skin the layout by changing colours and images used in the design. since a theme is just a CSS file and images, the layout of the page such as the location of the navigation is controled by the master page.

To create a new theme, copy an existing theme from the c: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ template \ themes Directory into a new directory.

Edit the c: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ template \ layouts \ 1033 \ spthemes. xml file and add a section for your new theme:

<Templates>
<Templateid> newdirectoryname </templateid>
<Displayname> theme display name </displayname>
<Description> give description of the theme </description>
<Thumbnail> images/customimage.png </thumbnail>
<Preview> images/pagepreview.gif </preview>
</Templates>

Perform an IIS reset and then select the new theme from the site settings page.

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.