Home › Forums › Calendar Products › Events Calendar PRO › Calendar Widget link to page of events
- This topic has 6 replies, 2 voices, and was last updated 12 years ago by
Barry.
-
AuthorPosts
-
February 1, 2014 at 5:41 pm #99644
troywoodland
ParticipantI have the calendar widget up. How to I modify it so when a day is clicked on, it links to a page that lists all the events for that day? I’ve tried but can’t figure this one out. I have searched w/o resolution. There was a post by ‘parentinginnky’ who claimed to resolve it with no description how. I appreciate any help.
February 2, 2014 at 3:42 pm #99798troywoodland
ParticipantTo follow this up, the pages get a href of javascript:void(0) when the number of events to show is equal to 0. So, it seems like it wants to do something…
February 4, 2014 at 7:34 am #100485Barry
MemberHi @troywoodland,
Though we can’t help too much with customizations like this I think in the first place I’d look at overridding and customizing the pro/widgets/mini-calendar/single-day.php template and swapping out the following piece of code with your own (which could link to single days):
<?php tribe_events_the_mini_calendar_day_link(); ?>If you are familiar with using filters in the WordPress sense you could alternatively leverage the tribe_events_the_mini_calendar_day_link hook. Last but not least, the following resources could be useful if you get stuck and the Themer’s Guide in particular is definitely worth reviewing before you get stuck in:
Hope that helps!
February 4, 2014 at 3:16 pm #100761troywoodland
ParticipantThe code you posted was already in the single-day.php. I assumed that out of the box, the mini calendar widget would work like the sample you have here: http://wpshindig.com/event-widgets/ – clicking a day that indicates there are events takes you to that days event list. When I click the link, I get javascript:void(0).
Should I try to re-install the system again, or is this an error that has a known fix.
February 5, 2014 at 9:49 am #100996Barry
MemberSo, I think you’re slightly confused as to what the expected behaviour is and that’s partly our fault – because at this moment there is a fault on WP Shindig and what you are seeing re the calendar widget is not actually normal behaviour. Let me try to explain:
- Ordinarily, if you click on a day (with events) in the calendar widget, it lists them below the widget – it does not take you to single day view
- The exception is if you set the widget to display 0 events, so you could give that a try
- In the case of WP Shindig, a Javascript error means we are seeing both sides of it – it is initially listing a number of events below it, but is also taking you to single day view
The code you posted was already in the single-day.php.
Yes it is, so what I’m suggesting (unless you are happy to use the show 0 events setting approach for the widget) is not adding it again but rather removing it and replacing it with your own code, generating a link to whichever page you feel is appropriate (single event pages in this case).
Does that make more sense?
February 9, 2014 at 7:09 am #102467troywoodland
ParticipantSuccess! Thank you for being patient Barry and explaining things further. I was able to dig in and find some code that worked perfectly. Much appreciated.
April 18, 2014 at 6:18 am #136054Barry
MemberFantastic 🙂
(Closing this out!)
-
AuthorPosts
- The topic ‘Calendar Widget link to page of events’ is closed to new replies.
