Home › Forums › Calendar Products › Events Calendar PRO › Add the event’s place to the calendar widget
- This topic has 7 replies, 2 voices, and was last updated 10 years, 5 months ago by
Josh.
-
AuthorPosts
-
November 8, 2015 at 7:05 am #1023043
Adage
ParticipantHello,
I want to add the event’s place to the calendar widget, near the time. How should I manage to do that ? Is there a code to add to my functions.php ? Or a core php file I should edit ? Or is it a native functionality I missed ?
Thank you.November 10, 2015 at 10:35 am #1023847Josh
ParticipantHey Adage,
I apologize for the delayed response here.
To get the customization that you’re looking for, you can follow our Themer’s Guide and start by adding the appropriate widget file that you would like to customize into your theme. You can then add the venue for the event by utilizing the “tribe_get_venue_link()” function.
Let me know if this helps to get you pointed in the right direction.
Thanks!
November 15, 2015 at 6:44 am #1026033Adage
ParticipantHello and thank you,
It seems you are indeed pointing the right solution, but I can’t find how to add the “tribe_get_venue_link() function” to the widget ?
How should I code my functions.php in order to make it work ?
Thank you very much for your help !November 17, 2015 at 6:19 am #1026970Josh
ParticipantHey Adage,
Thanks for following up here.
You won’t need to edit your theme’s functions.php file for this one. You’ll need to follow our Themer’s Guide linked above and copy the widget file that you would like to edit from the views > widgets folder within the Pro plugin into your theme (following the structure outlined in the Themer’s Guide) and make the changes there.
Let me know if this helps.
Thanks!
November 17, 2015 at 8:51 pm #1027272Adage
ParticipantHello and thank you,
I found the /views/pro/widgets/mini-calendar/list.php file, which seems to be the one I need th modify.
In it, I see this code :
<!-- Event --> <div class="<?php tribe_events_event_classes() ?>"> <?php tribe_get_template_part( 'pro/widgets/modules/single-event' ) ?> </div><!-- .hentry .vevent -->But since I don’t understand the tribe_get_template_part function, I can’t understand neither how to add the event’s event to the list’s elements.
Thank you for your help.
November 19, 2015 at 7:10 am #1028119Josh
ParticipantHey Adage,
Sorry for the confusion here. That is just saying that it is getting the contents of the “/views/pro/widgets/modules/single-event.php” and outputting it there. So, to further customize, you can edit that file (by copying to your theme at the appropriate location) to get the venue to display where you would like.
Thanks!
November 19, 2015 at 10:20 am #1028177Adage
ParticipantWonderfull !
Just great !
Thank you !November 20, 2015 at 11:01 am #1028708Josh
ParticipantHey,
No problem, happy to help!
I’ll go ahead and close this thread for now. If you have any further questions, please don’t hesitate to open a new thread.
Thanks!
-
AuthorPosts
- The topic ‘Add the event’s place to the calendar widget’ is closed to new replies.
