Home › Forums › Calendar Products › Events Calendar PRO › Best way to Display upcoming events like this
- This topic has 10 replies, 2 voices, and was last updated 11 years, 8 months ago by
matthewdenton.
-
AuthorPosts
-
July 15, 2014 at 12:34 pm #396983
christina
ParticipantHi all,
I’m wondering the best way to achieve a look like this: http://church-event.vamtam.com/home-standart (right above the “Our Gallery” section, not the counter)
Is this a customization of the Events Calendar list Widget ? Can anyone point me in the right direction?Thanks
July 15, 2014 at 6:34 pm #400397matthewdenton
MemberHi!
Thanks for taking the time to reach out to us with your query. The event listing you speak to in that site most likely is done from a customization to there theme. We provide a template function tribe_get_events that can be used to query for events that can than be displayed as desired. It looks to me like they are limiting the results to the next 4 upcoming events and then are displaying them per their own html/css.
I hope this information gets you started. You may also want to reference our docs and Themer’s Guide for more information.
Thanks again,
– Matthew
July 16, 2014 at 6:17 am #410978christina
ParticipantThanks for taking the time to get back to me! I’m having trouble setting the events to appear horizontal oppose to vertically
July 16, 2014 at 7:27 am #411729matthewdenton
MemberHi!
I’m glad I was able to answer your question. We don’t support customization requests in the forums. However if you are looking to have your events layout horizontally you may want to look at floating the events. Also you could look at the css for the sample site you sent us they do a horizontal display and could give you a starting point to work from.
Thanks,
– Matthew
July 16, 2014 at 7:35 am #411798christina
ParticipantDo you think it would be best to customize a widget or use a template function
July 16, 2014 at 8:13 am #412127matthewdenton
MemberHi,
The effort to customize this functionality into a Widget might not be worth the time. I’d recommend using template tags to build out your desired view. You can still build out the theme changes as a child theme or included file so that you can re-use the code on other sites or pages within your site.
– Matthew
July 16, 2014 at 3:03 pm #415475christina
Participantokay thanks. I think I am good with everything but I’m not 100% clear where in my theme I should be adding the template tag to call out my customizations.
July 17, 2014 at 6:11 am #428499christina
ParticipantThis is the code that im trying to post
<script src=”http://pastebin.com/embed_js.php?i=edXjvjRt”></script>July 17, 2014 at 6:12 am #428505christina
Participant<div class=”row wpv-tribe-multiple-events style-<?php echo $style ?>”>
<?php foreach($events as $i => $event): ?>
<div class=”wpv-grid grid-1-4 <?php if($i % 4 !== 0) echo ‘left-border’ ?>”>
<div class=”event-wrapper”>
<?php
$start = strtotime($event->EventStartDate);
$end = strtotime($event->EventEndDate);
$day = date(‘d’, $start);
$month = date_i18n(‘F’, $start);$stime = date(get_option(‘time_format’), $start);
$etime = date(get_option(‘time_format’), $end);
?>
” title=”<?php esc_attr_e(‘Read More’, ‘church-event’) ?>”>
<div class=”date”>
<div class=”day”><?php echo $day ?></div>
<div class=”month”><?php echo $month ?></div>
</div>
<h3 class=”title”><?php echo $event->post_title ?></h3>
<div class=”when-where”>
<div><?php echo $stime ?> — <?php echo $etime ?></div>
<div>@ <?php tribe_get_venue_link($event->ID, true) ?></div>
</div>
” title=”<?php esc_attr_e(‘Read More’, ‘church-event’) ?>” class=”button button-border accent1 hover-accent1″><span class=”btext”><?php _e(‘Read More’, ‘church-event’) ?></span>
</div>
</div>
<?php if($i % 4 == 3 && $i < count($events) – 1): ?>
</div>
<div class=”row wpv-tribe-multiple-events”>
<?php endif ?>
<?php endforeach; ?>
</div>July 17, 2014 at 6:28 pm #435234matthewdenton
MemberHi, Thanks for sharing your code where do you have this currently. Where it should go in your theme depends on where you want it in your site. I would suggest that you start by creating a custom page template file in your theme. You can create a new page in draft mode that uses that page template and you can test your changes until you have it working as desired.
I hope the above helps. We can’t support making customizations but if you have further questions on the template tags please let us know and make sure to look at the Themer’s Guide listed above it has lots of tips and helpful information.
– Matthew
August 4, 2014 at 9:52 am #579076matthewdenton
MemberHi, I wanted to quickly follow-up with you to see if you are all set or if you have further questions. Please let me know if you do have additional questions I can assist with or if I should go ahead and close this thread.
Thank you,
– Matthew
-
AuthorPosts
- The topic ‘Best way to Display upcoming events like this’ is closed to new replies.
