WordPress.org

Support

Support » How-To and Troubleshooting » How to get rid of Next/Previous links?

How to get rid of Next/Previous links?

  • radiantchild
    Member

    @radiantchild

    Hello everyone!
    I’m doing a theme for WordPress 2.0.2 based on default Kubrick, and I would be thankful for a little advice on the following:
    Inside archive template there’s navigation block that outputs Next Entries/Previous Entries links. So that if a category contains more then some number of posts (say default 10), visitor can navigate to previous entries. BUT if a category contains say 2 posts — those aren’t needed. I figured out that WordPress outputs an empty DIVs in place of those links. Now the question is how get rid of any sign of those links? I made a style for the navigation block with a background color — now when it’s empty I get colored bar, which I do not want…

    Thanks!

  • The topic ‘How to get rid of Next/Previous links?’ is closed to new replies.