How to remove navigation arrows for "older articles" and "newer articles" in WordPress

Source: Internet
Author: User
Keywords WordPress

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

WordPress comes with the paging navigation function is not easy to use, so most people will install Wp-pagenavi Plug-ins. However, after the installation of Plug-ins, in the home page and the top of the column and the tail, will still show the system with the "earlier article" and "newer article" navigation arrows, not only affect the beautiful page, but also make the function redundant. How do I get rid of these navigation instructions? This article takes twenty eleven theme as an example to give the answer, for WordPress novice Reference.

Click on the admin background "appearance"-"edit" to enter the editing topic. Open the index.php file first, locate and delete the following code:

1 < PHP twentyeleven_content_nav (' nav-above '); >

2 < PHP twentyeleven_content_nav (' Nav-below ');?>

3) < aspires id= "post-0" class= "Post No-results not-found" >

< header class= "Entry-header" >

< H1 class= "Entry-title" ><?php _e (' Nothing Found ', ' Twentyeleven ')?><

</header><!--. Entry-header-->

< div class= "Entry-content" >

< p><?php _e (' apologies, but no results were for the found requested. Perhaps searching'll help find a related post. ', ' Twentyeleven ';?></p>

< php get_search_form ()?>

</div><!--. Entry-content-->

</article><!--#post-0-->

In this way, the navigation arrows for "older articles" and "newer articles" on the home page are successfully removed. Then, open the category.php file, and also delete the above code.

Before you delete the code, it is best to back up the original code in Notepad to avoid accidental deletion. This is a good thing for a master to say, but for a rookie like me do not understand code, but very valuable experience oh.

This article by Lady Beautiful Mummy Original and share (http:/ladyprettymom.com), reprint please indicate the link, thank you!

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.