Home › Forums › Calendar Products › Events Calendar PRO › Previous/Next Events Navigation Issues
- This topic has 8 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
May 30, 2012 at 6:18 pm #19982
Meg Appleby
ParticipantIn 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!
MegMay 31, 2012 at 2:47 pm #20010Jonah
ParticipantHi 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
June 1, 2012 at 5:37 pm #20080Meg Appleby
ParticipantHi 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
MegJune 3, 2012 at 12:32 pm #20112Jonah
ParticipantHi 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,
JonahJune 3, 2012 at 4:56 pm #20120Meg Appleby
ParticipantI 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
MegJune 5, 2012 at 2:09 pm #20179Jonah
ParticipantHi 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
June 14, 2012 at 5:24 am #20663Meg Appleby
ParticipantThanks Jonah!
June 14, 2012 at 1:36 pm #20679Jonah
ParticipantYou’re welcome Meg, so is this resolved for you?
– Jonah
July 7, 2015 at 6:21 am #977089Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Previous/Next Events Navigation Issues’ is closed to new replies.
