Tips for modifying the default color style of dedecms 5.6 Template

Source: Internet
Author: User

 

First, change the template format in/templets/default/index.htmto the desired color. For example, if the official image is dedecms_skins_0.css (green) and you want to change it to blue, set 0 to 1 to complete the first step.

Next, open/templets/default/JS/changeskin. js.
Set

$ (Function () {<br/> var cookie_skin = $. cookie ("mycssskin"); <br/> switchskin (cookie_skin); <br/> addevent (); <br/> }); 

Change

$ (Function () {<br/> var cookie_skin = $. cookie ("mycssskin"); <br/> If (cookie_skin) {<br/> switchskin (cookie_skin ); <br/>}< br/> else <br/> {<br/> switchskin ('dedecms _ skins_1 '); <br/>}< br/> addevent (); <br/> }); 

 

Here, dedecms_skins_1 is changed to the default color. </P> <p> dedecms_skins_0 green <br/> dedecms_skins_1 blue <br/> Pink red <br/> dedecms_skins_3 peach red <br/> dedecms_skins_4 black <br/> dark brown <br/> 

 

Related Article

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.