Dedecms Default Color Modification method

Source: Internet
Author: User

On the internet to find a lot of methods are not satisfactory, some complex trouble not to say, finally changed even green also disappeared, there are many problems. So personally integrated online methods, a perfect solution, take out for everyone to use share.

The first step: the green style and the blue style file modify the file name to each other. Modify the address of the file "\default\templets\default\style"
Dedecms_skins_0.css renamed Dedecms_skins_1.css, and Dedecms_skins_1.css renamed DEDECMS_SKINS_0.CSS

The second step: Modify the \default\templets\default\images\theme.gif file, with the paint tool or PS to the blue icon and green icon swap position, will not make or feel trouble. Download one directly.

Step three: After the above two steps, without clearing the cache or cookies and other historical records, the operation is normal, but after cleaning up the cache, still the default display as green, then modify ...
First: Open the \default\templets\default\js\changeskin.js file with Notepad, look for the "function addevent" character, and after you find it, delete it including "function Addevent" The line of characters and all of the following code, and then copy the following code to the end of the page.
function Addevent () {
var $li =$ ("#dedecms_skins li");
$li. Click (function () {
Switchskin (this.id);
});
var Cookie_skin = $.cookie ("Mycssskin");
if (Cookie_skin) {Switchskin (Cookie_skin);}
Else
{Switchskin ("Dedecms_skins_0");}
}

The last step: when the mouse points to the blue sign is the message "green" and vice versa "blue". Although it does not affect the use, but a little less perfect.
Notepad opens the \default\templets\default\head.htm file or opens the Head.htm file in the Dede background, finds the following two lines of code to change all the characters with "blue" to "green" and vice versa, and then save the exit.

<li id= "Dedecms_skins_0" title= "green" > Green </li>
<li id= "Dedecms_skins_1" title= "Blue" > Blue </li>

After the above four steps, the perfect modification of the Dede default color from green to blue, of course, can also default to other colors, similar operation.

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.