Home › Forums › Calendar Products › Events Calendar PRO › adding venue to mini calendar widget
- This topic has 11 replies, 3 voices, and was last updated 10 years, 1 month ago by
Support Droid.
-
AuthorPosts
-
March 1, 2016 at 12:29 pm #1084019
paul
ParticipantHi, found this forum post / answer:
…but not sure it’s current. The code referenced in the fix isn’t in the current version of the mini calendar widget.
Can you advise re: how to add the event venue/address/map link etc to the mini calendar widget? I have the themeing folders set up, and files in place, just not sure how to tweak the code exactly to get the venue info to show up.
Thank you!
March 2, 2016 at 8:21 am #1084348Brian
MemberHi,
Thanks for using our plugins. I can help out here.
This step here should still work:
Did you try adding it to that template and it did not work>
March 2, 2016 at 8:30 am #1084366paul
ParticipantCorrect, I have it here:
My site is here, and you can see that the venue does not appear (the list widget below the calendar widget is displaying the venue info I’d like in to show in the calendar widget):
http://143.95.67.209/~easthigh/
Also, you’ll notice that although there are events on the 29th and 30th of March, when you click those days nothing appears below the mini calendar, so not sure what’s up there. Here’s the full calendar:
http://143.95.67.209/~easthigh/schedules/category/games-varsity/
Thanks for any ideas.
March 2, 2016 at 8:49 am #1084417Brian
MemberOk it looks like we removed the query I was checking on in 3.10.
You can try adding this:
<?php if ( $wp_query->query_vars['is_tribe_widget'] == 1 ) { ?>
<span class="fn org tribe-venue"><?php echo tribe_get_venue_link(); ?></span>
<?php } ?>Under this:
<div class="tribe-events-location">And add this:
global $wp_query;Under this:
$multiple_organizers = count( $organizer_ids ) > 1;Unfortunately, that will show in both the mini calendar and event list widget as they use the same template. To prevent duplicates in the list view I would uncheck that box in the widget settings for the venue name.
Let me know if that helps with this and we can move on to the next issue with the 29th and 30th events.
Cheers
March 2, 2016 at 8:55 am #1084424paul
ParticipantLooks good, thanks:
http://143.95.67.209/~easthigh/
It didn’t cause dupes in the list widget, FYI… but I’ll be removing that anyway.
Thoughts on the dates that have data, but are showing empty?
March 2, 2016 at 11:54 am #1084520Brian
MemberOk glad one things is moving forward.
For those two events not showing.
If you change the start time does that help?
What is the start and end time for the events as they are?
Also, what is your End of Day Cutoff setting:
Events > Settings > General Tab > “End of day cutoff”
Thanks
March 2, 2016 at 12:05 pm #1084528paul
ParticipantThe events are pulled in from an ical link… and for those two events there is no time in the ical link, just a “TBD”… so looks like The Events Calendar set them up with a 12:00 am start time. The end of day cut-off is set to 12:00 a.m. I changed it to 1 am but then it moved each event back one day, to the wrong days.
So, thoughts on best way to tweak these, since they are TBD, and imported every hour?
March 2, 2016 at 3:01 pm #1084579Brian
MemberSince the our plugin does not have a way to handle a time TBD that looks to be causing the issue.
If you can set it as an All Day Event it should show then, is that possible?
March 2, 2016 at 3:04 pm #1084582paul
ParticipantWell, unfortunately I don’t have any control over the ical feed, which will overwrite anything I put in to my calendar. Might be out of luck, eh?
March 2, 2016 at 3:09 pm #1084583paul
ParticipantOr maybe it’s the venue that’s the issue… it comes through as “TBA”. Not sure if the time would cause the issue, since it looks like it is in the database as 12:00 am. You can see the event here:
http://143.95.67.209/~easthigh/schedule/lacrosse-boys-varsity-8/
March 6, 2016 at 5:43 am #1085648Brian
MemberHi,
Sorry for the late reply here.
I see that event. Is both the start and end time 12:00am?
I do not think the venue is causing this.
It might be out system not knowing how to read an event that starts and ends at 12am.
It might be possible to create a custom script on your site to change it to an all day event so it at least shows there. It would have to run after the import so it does it everytime.
If you change one of those events temporary to an all day event does it then show?
March 21, 2016 at 9:35 am #1091853Support 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 ‘adding venue to mini calendar widget’ is closed to new replies.
