Installing Plug-ins
The first step is the need to install a good wp-easyarchives plugin! After the installation is complete, start the plugin, then configure the plugin options!
New archives.php
We are in the terminal operation, into the subject directory, see the page.php? You can see it!
Then use the following command to manipulate:
CP page.php archives.php
This creates a new file named Archives.php, and it also copies all the content in page.php!
Then modify the archives.php file, remove the header note, and modify it to:
/*
Template name:archives Page
*/
It is best not to use Chinese annotation, otherwise it may be garbled. This way you can choose the template when you create a new page, the template appears archives page!
New Article archive page
Enter the background, click New Page, select template for Archives page, preview it!
The preview found that the effect is far from what I expected, so how can I not indent? How does the color change? Look at the following author's modified CSS style bar!
Modify CSS Styles
In the background plugin Click Edit, go to the Plugin edit page, select Wp-easyarchives, and then find the CSS file Wp-easyarchives/css/wp-easyarchives.css, replaced by the following:
#easy-archives Ea-loading{background:url (. /img/ajax-loader.gif) 0 50% No-repeat;padding-left:22px;height:20px;line-height:20px;display:block;}
#easy-archives {width:90%;margin:auto;margin-top:20px}
#easy-archives. Ea-closed{display:none;}
#easy-archives ea-collapse, #easy-archives ea-expand{display:block;float:left;width:16px;height:16px;cursor: pointer;}
#easy-archives Ea-collapse{background:url (. /img/icons.png) 0-100px No-repeat;}
#easy-archives Ea-expand{background:url (. /img/icons.png) 0 0 no-repeat;}
#easy-archives. Ea-detail{font-weight:bolder;font-size:18px;color: #006400;}
#easy-archives. Ea-month{padding-bottom:10px;margin-left:0px;font-size:13px;color:green;}
#easy-archives. Ea-month Li{list-style:none}
#easy-archives li{margin-top:5px;margin-left:30px;}
#easy-archives Li Span, #easy-archives. Ea-title span{font-size:14px; color: #999;
#ea-year, #ea-author{font-weight:bolder;}
#ea-filter{height:24px;padding-bottom:20px;margin-top:30px;display:none;}
#ea-filter Select, #ea-filter input{margin-right:10px;}