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?
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?
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.
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.
Support forum for Event Espresso 3 and Event Espresso 4.