Support

Home Forums Event Espresso Premium Adding a custom message after the Event Details/ before Ticket Details

Adding a custom message after the Event Details/ before Ticket Details

Posted: July 9, 2015 at 8:34 am


Deborah Fox

July 9, 2015 at 8:34 am

I would like to add a custom message to our single event pages between the event details & ticket details sections. Following the example given here (https://gist.github.com/lorenzocaum/2b2d419d092bf13d9116), I added the following to my site specific plugin:
//* Add a message after the event details area
add_action( ‘AHEE_event_details_after_the_content’, ‘ee_custom_messaging_after_event_details’ );
function ee_custom_messaging_after_event_details() {

echo ‘These lectures are free and open to the public, but due to space constraints registration is required. Please note that registering does not guarantee admission. Registered guests will be offered priority seating that will be honoured until 15 minutes before the start of the event. After that time, seating will become available to all on a first-come, first-served basis, regardless of registration. ‘;
}

But the message isn’t displaying — what am I missing here?


Deborah Fox

July 9, 2015 at 8:48 am

Sorry, I realized my error in that I had placed the message after the event details. How can I modify it to go between the event datetimes & ticket details section?


Josh

  • Support Staff

July 9, 2015 at 10:16 am

Hi Deborah,

You can change the message so it displays after the datetimes section by changing the name of the action to which ee_custom_messaging_after_event_details is hooked to be AHEE_event_details_after_event_date.

So this:

add_action( ‘AHEE_event_details_after_the_content’, ‘ee_custom_messaging_after_event_details’ );

becomes this:

add_action( ‘AHEE_event_details_after_event_date’, ‘ee_custom_messaging_after_event_details’ );


Deborah Fox

July 9, 2015 at 10:50 am

Perfect — thank you!

The support post ‘Adding a custom message after the Event Details/ before Ticket Details’ 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