Customizations to widget and event page layout

Home Forums Calendar Products Events Calendar PRO Customizations to widget and event page layout

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #984850
    Rachel
    Participant

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

    #984885
    Geoff
    Member

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

    This 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!
    Geoff

    #989333
    Support Droid
    Keymaster

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Customizations to widget and event page layout’ is closed to new replies.