Support

Home Forums Event Espresso Premium Editing Invoice and Receipt templates

Editing Invoice and Receipt templates

Posted: October 23, 2015 at 7:44 am


fffunction

October 23, 2015 at 7:44 am

Hi there,

I want to edit the receipt and invoice templates to include a custom CSS file. I tried out the method described in this support post: https://eventespresso.com/topic/pdf-invoice-custom-css/ however it seems that the invoice and receipt templates don’t use invoice_header.template.php anymore but instead use html_main_wrapper.template.php from the core/libraries/messages/defaults/default/ folder.

I’ve tried the same approach of copying that file to the uploads/espresso folder but its not overriding the plugin version of that same file.

Is this possible? if so can you see what I’m not doing right?

Cheers,

B


Josh

  • Support Staff

October 23, 2015 at 7:34 pm

Hi B,

It turns out the information you found in the other thread is out of date. Here’s a link to the documentation for the hook you use to include a custom CSS file for any of the messages:

http://developer.eventespresso.com/hooks/fhee__ee_messages_template_pack__get_variation/

You’ll note that there’s a usage example in the above documentation, and in that example has this:

$new_url = get_stylesheet_directory_uri() . '/new_html_variation.css';

You can set $new_url to another location and file name if you’d like, the above example code will look in the active WordPress theme (or child theme if applicable) for a file named “new_html_variation.css”.

The support post ‘Editing Invoice and Receipt 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.

Event Espresso