About WordPress theme Prower-V4

Source: Internet
Author: User
Tianya PHP blog today changed the subject of Prower-V4, the overall effect is very simple. Official Blog: http://www.prower.cn/work/2097follow the example of the topic author. However, in my testing, some commonly used plug-ins are still indispensable, such as PageNavi.

Tianya PHP blog today changed the subject of Prower-V4, the overall effect is very simple. Official Blog: http://www.prower.cn/work/2097
According to the author of this topic, this topic does not require any wordpress plug-ins. However, for my testing, some commonly used plug-ins are still indispensable, such as PageNavi.
In addition, I am pursuing details. Therefore, I still need to modify many details on this topic. This afternoon, I was just idle, so I modified it myself.
The effect after the modification is what the blog looks like now. the main changes are as follows:
1. modify the homepage article list
You have installed the WP-PostViews plug-in, which is used to display the browsing times of the article. Next, you can modify the relevant information in the article list, add the browsing times, and place the tags in the next line of the article separately, this will show more tags without leading to typographical disorder.
2. modify the latest comment call
Modify the default style, remove the comments link, block comments, and directly display and intercept comments. I need to modify the program code.
Open the default-widgets.php file under the wp-nodes des/Directory
[1] search for "get_comments" and modify it to the following code:
$ Comments = get_comments (array ('number' => $ number, 'status' => 'approve', 'post _ status' => 'Publish ', 'user _ id' => 0 ));
This code is used to block comments replied by yourself.
[2] search for "recentcomments" and modify it to the following code:
If ($ comments ){
Foreach (array) $ comments as $ comment ){
$ Output. ='

  • '. Sprintf (_ x ('% 1 $ s: % 2 $ s', 'widgets'), get_comment_author (), 'comment _ ID )). '"> '. mb_strimwidth (strip_tags ($ comment-> comment_content), 0, 25 ,'... ').'').'
  • ';
    }
    }
    The purpose of this code is to modify the form of the latest comments on the homepage to "Tianya: Your blog is really good! ".
    3. modify the paging effect of an article
    Generally, PageNavi can be used as the paging plug-in. However, PageNavi is not displayed in this topic, which makes many people very depressed.
    Solution: I have already shown in another article: "modifying WordPress pagination plug-in WP-PageNavi to not display pagination"

    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.