Add the event’s place to the calendar widget

Home Forums Calendar Products Events Calendar PRO Add the event’s place to the calendar widget

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1023043
    Adage
    Participant

    Hello,
    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.

    #1023847
    Josh
    Participant

    Hey 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!

    #1026033
    Adage
    Participant

    Hello 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 !

    #1026970
    Josh
    Participant

    Hey 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!

    #1027272
    Adage
    Participant

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

    #1028119
    Josh
    Participant

    Hey 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!

    #1028177
    Adage
    Participant

    Wonderfull !
    Just great !
    Thank you !

    #1028708
    Josh
    Participant

    Hey,

    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!

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Add the event’s place to the calendar widget’ is closed to new replies.