This is not a huge problem in HTML, but when I try to download the PDF, DOMPdf generates an error and I’m thrown back to the home page. The problem disappears when I comment this line in class EE_Pdf_messenger, line 302:
301 protected function _deregister_wp_hooks() {
302 // remove_all_actions('wp_head'); -> comment this
303 ...
That particular hook isn’t well suited for overriding CSS. I can recommend using a filter hook instead where you can swap in your custom stylesheet instead of the default one. Example code follows:
Thanks, that works. The action hook sounded tempting though 😉
Viewing 2 reply threads
The support post ‘Invoice custom CSS appears at the bottom and crashes DOMPdf’ 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.