Calendar Widget link to page of events

Home Forums Calendar Products Events Calendar PRO Calendar Widget link to page of events

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #99644
    troywoodland
    Participant

    I 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.

    #99798
    troywoodland
    Participant

    To 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…

    #100485
    Barry
    Member

    Hi @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!

    #100761
    troywoodland
    Participant

    The 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.

    #100996
    Barry
    Member

    So, 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?

    #102467
    troywoodland
    Participant

    Success! 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.

    #136054
    Barry
    Member

    Fantastic 🙂

    (Closing this out!)

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Calendar Widget link to page of events’ is closed to new replies.