Previous/Next Events Navigation Issues

Home Forums Calendar Products Events Calendar PRO Previous/Next Events Navigation Issues

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #19982
    Meg Appleby
    Participant

    In the Upcoming Events list (http://nzsa.bloomonline.co.nz/events/upcoming/) there is a wee issue with the navigation at the bottom of the page.
    1. The Next Events navigation is not showing on the right hand side. Is this an error? Or is this because I only have two events and there is no next page? I only want the page navigation to show if there is a next page for it to go to …

    2. The Previous Events navigation is showing … however, I would like it not to show unless there are previous events available. Is it possible to do this?

    Thanks for your help!
    Meg

    #20010
    Jonah
    Participant

    Hi Meg,

    1. You are correct, the next link is not showing because there is no next page yet…
    2. I think this code will help you out with both questions: https://gist.github.com/2846535 – basically it just adds some more logic to detect if there is a link available and if not, display a span tag with a class of ‘inactive’ which you can just remove and then there should be nothing displayed if there is no link… But you could also keep this code and show something different for the “inactive” state if you wanted.

    I hope that helps!

    – Jonah

    #20080
    Meg Appleby
    Participant

    Hi Jonah
    Thanks so much for this! For some reason, the previous navigation link is still showing, even though I have only the two events …
    Would really appreciate if you could have a look and see why this might be.
    Cheers
    Meg

    #20112
    Jonah
    Participant

    Hi Meg,

    That’s strange because I do not see this on my end using the Genesis theme framework with the stock events single.php file and using the code I supplied on Github. It might be an issue with your theme – have you tried reverting to the Twenty Eleven theme to see if that fixes it? Or, try deactivating all other plugins to see if maybe some plugin you have installed is causing problems? These are the first two things you should check. Let me know what turns up after trying that out.

    Thanks,
    Jonah

    #20120
    Meg Appleby
    Participant

    I only have 3 plugins activated – shortcodes ultimate, gravity forms & backupbuddy – turned them off one at a time and all at once and the ‘Previous Events’ label still shows.

    Am using Headway Themes. Switched it over to Twenty Eleven and I still have the ‘Previous Events’ label showing ….

    But … what I am wanting is it to take the previous/next links off of the Events List page – not the single events page. So I put the code you gave me into list.php … is that the problem?

    Cheers
    Meg

    #20179
    Jonah
    Participant

    Hi Meg,

    My apologies. That code will only work in list.php and it actually does that opposite of what you want… The default prev/next code in list.php should do what you want out of the box so make sure that you haven’t replaced that code with something else. Maybe try pulling down a fresh copy of list.php by downloading the plugin again and re-copying in that block of code.

    – Jonah

    #20663
    Meg Appleby
    Participant

    Thanks Jonah!

    #20679
    Jonah
    Participant

    You’re welcome Meg, so is this resolved for you?

    – Jonah

    #977089
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Previous/Next Events Navigation Issues’ is closed to new replies.