Support

Home Forums Event Espresso Premium Please advise as to the best way of adding event information

Please advise as to the best way of adding event information

Posted: October 20, 2015 at 2:47 pm


tppadmin

October 20, 2015 at 2:47 pm

Hi

I’d like to add my event information to my post that I’ve set up http://bmc-client.co.uk/tppmain/course-detail/ what is the best way of doing this please? I’m using visual composer to put my posts together and want to have quite a visual layout. I wondered if there was a way of porting all the information from EE event page onto onto the course detail page link above.


Tony

  • Support Staff

October 21, 2015 at 2:19 am

Hi there,

Currently there isn’t a way to port all of the information over.

You can use the [ESPRESSO_TICKET_SELECTOR event_id=”your_event_id”] shortcode to display the ticket selector for a specific event on custom pages, once the user selects the tickets from there they will be directed to the registration checkout page to continue the registration.

Would that work?


tppadmin

October 22, 2015 at 3:46 am

hmmm not really in all instances as the client wants to have the calendar.

I think I’m going to have to bite the bullet and style a register page as the client wants to have the calendar module too and this links to the register page. I have one here http://bmc-client.co.uk/tppmain/events/event-2/ but could you give me a brief outline as to how I can make this template more appealing?

I would ideally like to put a sidebar widget in here maybe or move the title to be more prominent. Any help here would be gratefully received.


Tony

  • Support Staff

October 22, 2015 at 6:08 am

Are you comfortable editing the themes template files, you’ll likely want to create a child theme and add the files to that?

The single event view uses your themes single.php template to output the event details. So in order to style that specific output you’ll need to create a custom single-espresso_event.php template. This will need to beased you your current themes files but will also need to call the EE details to be included (and your sidebar if that’s what your prefer)

You can find details on setting up template files here:

https://gist.github.com/lorenzocaum/16aac08f099d7c154f04

With further details on which template file does what here:

https://gist.github.com/lorenzocaum/0a35fe4997992fdb1dc5


tppadmin

October 26, 2015 at 4:52 pm

Hi Tony

Thank you for this advice – I’ve had a go at themeing a single-espresso_event.php template to include the ‘content-espresso_events’ call in the page. So now I presume everything I change in this page content-espresso_events.php will be called to here. http://bmc-client.co.uk/tppmain/events/presenting-magically-main/

I’ve managed to get my dt-theseven theme ‘visual composer’ plug in to pull into this page. BUT its below the ticket information – I need the sales stuff above. Could you advise what bit of code I’d need to put in to do this.

Also could you please advise how to make the whole page one column.


Josh

  • Support Staff

October 26, 2015 at 7:26 pm

Hi there,

You can copy the content-espresso_events.php file into your WP theme, then inside that file you’ll find these four lines of code:

<?php espresso_get_template_part( 'content', 'espresso_events-tickets' ); ?>
<?php espresso_get_template_part( 'content', 'espresso_events-datetimes' ); ?>
<?php espresso_get_template_part( 'content', 'espresso_events-details' ); ?>
<?php espresso_get_template_part( 'content', 'espresso_events-venues' ); ?>

To make the ticket information display at the bottom, you change it to:

<?php espresso_get_template_part( 'content', 'espresso_events-datetimes' ); ?>
<?php espresso_get_template_part( 'content', 'espresso_events-details' ); ?>
<?php espresso_get_template_part( 'content', 'espresso_events-venues' ); ?>
<?php espresso_get_template_part( 'content', 'espresso_events-tickets' ); ?>

If your WP theme has a full-width one-column page template, then you use that template as your starter for single-espresso_event.php.

The support post ‘Please advise as to the best way of adding event information’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso