Home › Forums › Calendar Products › Events Calendar PRO › Enabling next month link if there are no future events?
- This topic has 6 replies, 2 voices, and was last updated 9 years, 7 months ago by Brian.
-
AuthorPosts
-
August 18, 2014 at 11:01 am #681472Nathan ClarkParticipant
Hi, we recently updated to 3.7 of the events calendar and ran into an issue. It seems now that when there are no future events, the link for the next month is not rendered. This seems like a feature or some done intentionally. Is there a way to disable it? Or is it perhaps a bug?.
August 18, 2014 at 11:31 am #681511Nathan ClarkParticipantI see now that this was an intentional change and not a bug. Is there a way to disable this new feature?
August 19, 2014 at 9:28 am #683912BrianKeymasterHi,
You are correct, this is an intentional change.
There is no option to disable it from the Admin area.
However, you can create your own function to replace the existing function.
I did a test and got this to work for me.
You will have to follow the Themer’s Guide to get the month\nav.php into your theme to edit.
Once there you can rename tribe_events_the_next_month_link(); to custom_tribe_events_the_next_month_link();
Then put this function in your Functions.php of your theme and that should be it. (this function is from 3.6.1 and renamed to not cause conflicts)
if you get stuck somewhere let us know and we can get you going in the right direction.
Thanks!
August 19, 2014 at 9:43 am #683938Nathan ClarkParticipantThank you for responding and taking the time to provide some sample code! I will check this out.
August 19, 2014 at 10:12 am #683995Nathan ClarkParticipantIt seems that in IE8 the month links are still visible even though there are no future events. However, when you click those link nothing happens. I would think that the links should be hidden as well.
Example site:
http://wp.tegandev.com/calendar/2014-09/August 20, 2014 at 7:22 am #686388BrianKeymasterHello,
I took a look at your site in IE8 and did not see the links for future events.
How are you testing in IE8.
Are you using that browser directly or through the IE Developer Tools?
If you are having trouble with IE8 and The Events Calendar Future links could you create a new ticket for that issue.
It will help other people that have that same issue if it is in it’s own topic and for us to to solve it.Let us know if you are still having issues with IE8 and we can help out.
Thanks
September 12, 2014 at 10:07 am #740237BrianKeymasterHello,
I am going to close this topic as we typically close threads if there is no activity after two weeks. Feel free to create a new thread and reference this one to save you time.
Thanks
-
AuthorPosts
- The topic ‘Enabling next month link if there are no future events?’ is closed to new replies.