WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Remove (prev) and (next) at bottom of pages? (9 posts)

  1. psy5ive
    Member
    Posted 7 years ago #

    I found the answer for a previous version in another thread, but just cant seem to find where this applies to 2.1

    Each page has a link to the PREV and NEXT post at the bottom of the page, and i don't want that there at all. I've looked around in the support section and the files, but am not turning up with anything. What did i miss?

    tia

  2. Bodhipaksa
    Member
    Posted 7 years ago #

    You don't have a site listed in your profile and you don't provide a link, so here's a guess. Probably in your archive.php file (it's in your theme directory) there's something that looks a bit (but not exactly) like this:

    <?php next_posts_link('&laquo; Previous Entries') ?>
    <?php previous_posts_link('Next Entries &raquo;') ?>

    There may well be other stuff around that code that's to do with styling. You need to do delete the code and maybe some of the stuff around it.

    You may also have to look in single.php (again I'm just guessing) and remove any similar code.

    This advice is a bit vague, but you are basically asking us to guess!

  3. psy5ive
    Member
    Posted 7 years ago #

    sorry, the site is located at http://tinyurl.com/2ehbsk

    i have tried removing what you suggested, but i am not having much luck.

    Thanks for any help

  4. Bodhipaksa
    Member
    Posted 7 years ago #

    I haven't been able to find a page with previous and next links. Can you point me to one?

  5. psy5ive
    Member
    Posted 7 years ago #

    Sorry again for not being more clear. The posts, for example, if you click on DJs, and click on READ MORE for any one of them, at the bottom of those pages, it has links to the previous and next posts. It doesnt actually say previous and next, instead it has the previous and next post titles. Thats what i am wanting to get rid of. Tia.

  6. Bodhipaksa
    Member
    Posted 7 years ago #

    Thanks, that helps.

    The html code for that part of the page is:

    !-- This is where the "NEXT"  & "PREVIOUS" links appears after comments-->
    <div class="pg_nav">&laquo; <a href="http://trancepsyndicate.com/kentvogel/">Kent Vogel - Normal, IL</a> 
    
    &nbsp;&nbsp; <a href="http://trancepsyndicate.com/2007-photo-galleries/">2006 Photo Galleries</a> &raquo;</div>
    <!--  end -->

    I'm assuming that if you look in single.php you'll find that comment and the pg_nav div surrounding some code that creates the links. Could you take a look and let us know what you see?

  7. psy5ive
    Member
    Posted 7 years ago #

    In single.php i have already removed that... I did before i posted yesterday. I have also checked on index in the default folder, and removed 2 similar instances there as well. I am stumped.

  8. psy5ive
    Member
    Posted 7 years ago #

    I found it! It was actually in the comments.php in my specific theme's folder. Thank you for your help!

  9. Bodhipaksa
    Member
    Posted 7 years ago #

    I'm glad you found it!

Topic Closed

This topic has been closed to new replies.

About this Topic