WordPress Plugin wp-easyarchives Add Article archive page example

Source: Internet
Author: User
Tags php file


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;}

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.