Support

Home Forums Event Espresso Premium Custom Thank Page EE4

Custom Thank Page EE4

Posted: December 13, 2016 at 8:20 am


botanica

December 13, 2016 at 8:20 am

We would like to add a “Print Tickets” button under the the Congratulations text. I have tried to add_action but I can only get the button to appear on the upper left above all of the transaction information. http://dev.botanica.org/thank-you/?e_reg_url_link=1-09ab8229df62d130a46de2bc69091002


Tony

  • Support Staff

December 13, 2016 at 8:40 am

Hi there,

We have an example of how you can add a button/link to the thank you page for your tickets here:

https://gist.github.com/Pebblo/525890c30baa7e207e4f

Just change the output on line 20 to suit.


botanica

December 13, 2016 at 8:45 am

I have that piece. I already added that to my page. The problem is the button is not where I want it to be. I want it to be under the congratulations text, under the download receipt button.


Tony

  • Support Staff

December 13, 2016 at 9:07 am

That’s the closest you can get it with the current hooks on the thank you template, but you could use some CSS to float the link right:

a.ee-button.ee-roundish.indented-text.big-text {
    clear: both;
    float: right;
}

However if doing that you would be better adding your own class onto the ticket button and targeting that, the above also targets the receipt button.

Or, you can load your own version of the thank you page template from your theme and add the button directly to the template.

To do that you grab a copy of the original template:

\event-espresso-core-reg\shortcodes\espresso_thank_you\templates\thank-you-page-overview.template.php

Place that within your themes root directory and edit the copy there to add the link directly below the receipt button.

The support post ‘Custom Thank Page EE4’ 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