Hide "previous" when on first "page" and hide "next" when on last "page"

Hide "previous" when on first "page" and hide "next" when on last "page"

StevenDavisPhotoStevenDavisPhoto Posts: 4Questions: 0Answers: 0
edited January 2014 in General
Right now my pagination always says "Previous Next". It is possible to hide each one when you can't navigate to previous/next? So hide previous if on first "page" of results, and hide next if you're on the last "page"? Thanks.

Replies

  • StevenDavisPhotoStevenDavisPhoto Posts: 4Questions: 0Answers: 0
    nevermind. i realized they have a class for that, so i just do a "display:none" on those classes. thanks.
  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin
    That's exactly how I'd suggest doing it - nice one :-)

    Allan
This discussion has been closed.