Home › Forums › Calendar Products › Events Calendar PRO › Customizations to widget and event page layout
- This topic has 2 replies, 3 voices, and was last updated 10 years, 10 months ago by
Support Droid.
-
AuthorPosts
-
July 8, 2015 at 11:56 am #984850
Rachel
ParticipantI have been very happy with this plugin and am wrapping up a project with a client. They have requested some customizations that I haven’t been able to figure out:
1. http://www.mariposapathway.org/taking-flight-2-hour-workshops-2/ – I would like the Upcoming Events Shortcode to include a call to action button for visitors to click to go to the event page.2. Same page: we would like to include the location (city) in the Event Title or right after.
3. Change term Organizer to Facilitator
4. Change Tickets (wootickets) to Registeration
I imagine these are pretty simple fixes but my knowledge of php templates is limited.
Thank you!
July 8, 2015 at 1:24 pm #984885Geoff
MemberHello Rachel and welcome to the forums! I’m so glad to hear you’ve been loving the plugins so far and really appreciate the kind words. đŸ™‚
Excellent questions. First off, the button in the widget. This is a good idea and can certainly be done, though it will take a little bit lifting for you. To make this happen:
- Make a copy of the widget template. It’s located at /wp-content/plugins/events-pro/views/widgets/modules/single-event.php. Phew!
- Make a new folder in your theme directory called tribe-events
- Make a new folder in that one called pro
- Make a new folder in that one called widgets
- Make (yet one more) in that one called modules
- Drop your copied single-event.php file in that last folder
Now that the template is in your theme folder, you can modify it to suit your needs. In this case, locate where you would like to add your button, add it, then save the file. That might look something like this:
<a href="<?php echo esc_url( tribe_get_event_link() ); ?>" rel="bookmark">Check it out!</a>2. Same page: we would like to include the location (city) in the Event Title or right after.
Similar deal here. In that same file, look for this code:
[php]
<h2 class="entry-title summary">
<a href="<?php echo esc_url( tribe_get_event_link() ); ?>" rel="bookmark"><?php the_title(); ?></a>
</h2>
[/php]…and change it to something like this to get the city after the title:
[php]
<h2 class="entry-title summary">
<a href="<?php echo esc_url( tribe_get_event_link() ); ?>" rel="bookmark"><?php the_title(); ?> in <?php echo tribe_get_city() ?></a>
</h2>
[/php]3. Change term Organizer to Facilitator
4. Change Tickets (wootickets) to RegisterationThis article should help guide you for changing these words (and any others).
I hope this helps! We are fairly limited in how much support we can provide for customizations, but please feel free to let me know if you have any follow-up questions here and I’d be happy to help as best I can. đŸ™‚
Cheers!
GeoffJuly 23, 2015 at 7:05 am #989333Support 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 ‘Customizations to widget and event page layout’ is closed to new replies.
