Support » Fixing WordPress » Remove page navigation 1, 2, 3 etc.

  • Hello,
    I want to remove page navigation from my homepage.
    I’ve removed it by deleting this part:

    <div class="pagination">
                	<?php if (function_exists("number_paginate")) { number_paginate(); } ?>

    But Im not sure that the pagination /page/2 or /page/3 will be hidden from search engines.
    Is there a way to delete or disable it permanently from core or something else?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz


    Search spiders see what your browser sees when it gets a page from your site. (assuming your php code doesn’t play games by delivering different content to search spiders) If you view the page source in your browser and see any links, even in comments or with display: none; styling, then search spiders see them too. If not, then search spiders don’t either.

    If spiders have already recorded links to those pages, they will come back looking for updated versions. To keep the pages from being indexed, you would have to redirect spiders elsewhere. Or you could try adding a robots noindex meta tag to the page’s head.

    To remove undesired links, either edit your theme’s template or create a child theme where your edited template will replace the parent’s version.

    Alternately, you can try adding the rel="nofollow" attribute to your link tags, but there’s no guarantee search spiders will honor it. And/or you could disallow the page destinations in robots.txt, but again, no guarantee.

    I know what you say but, if someone try to access by browser from can see the content.
    Is there a way to remove pagination or I just can “hide” it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove page navigation 1, 2, 3 etc.’ is closed to new replies.