Event Espresso loads most of the individual sections through their own individual templates, meaning that a single page can load multiple templates. I’m assuming you don’t want to add code to each individual template?
Yes, trying to avoid copying all of the templates over.
I want to inject a html banner at the bottom of every page in the booking process – It will just be a notice to users when they are buying and registering.
Positioning wont be a problem as it will be controlled absolutely by CSS – it just needs to be included.
Do you want it to continue to display on the thank you page, after they have finalized the registration?
There is the ‘AHEE__SPCO__reg_form_footer’ hook which runs just after the SPCO buttons – http://take.ms/jW45U
That’s just using:
function tw_ee_after_spco_output() {
echo '<h1>Some custom HTML here</h1>';
}
add_action( 'AHEE__SPCO__reg_form_footer', 'tw_ee_after_spco_output' );
But you could also just add the banner within the registration-checkout page to achieve the same results for that. But if you also want it to be displayed on the thank you page, you can add that same function to the:
‘AHEE__thank_you_page_overview_template__bottom’
Or again add the content into the thank-you page itself.
Viewing 3 reply threads
The support post ‘Add code – to all registration/booking templates’ 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.