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?
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:
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”.
Viewing 1 reply thread
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.
Support forum for Event Espresso 3 and Event Espresso 4.