Custom Event Page PHP?

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 9 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19472

    Hi Stephen,

    It looks like the Event page (that contains the Booking form) uses the standard WP “post” php file. We would like to not have certain blocks on the Event page, and wondered if it was possible to have the Event page use a different php file, specifically, one that didn’t have:

    1. The Date & Comments section right under the Event title, and
    2. The Posting Date block & Comments comment at the bottom of the page,
      under the Pay button.

    Thanks for your help,
    Dave

    Cindy Fry
    #19473

    Hi Cindy,

    By default if your theme doesn’t have a single-event.php the plug-in uses single.php and inserts the event data before the content.

    You can create a custom event template by creating a single-event.php in your theme. Then, to include the meta data template on the single event page simply add the line

     <?php eo_get_template_part( 'event-meta', 'event-single' ); ?>
    

    wherever you want that content (event date, venue map etc) to appear. More details about templates can be found here: docs.wp-event-organiser.com/theme-integration/

    By default the booking form is added immediately after the event content, you can change that location as outlined in this thread: http://wp-event-organiser.com/forums/topic/move-booking-form-to-different-location-on-page/

    Hope that helps!

    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.