Posted: March 29, 2014 at 9:28 pm
|
Hello, I’m wondering, where should I Load a custom style sheet to change the look of my invoice? The invoice pdf stylesheet is cutting both business name and address into two lines. I changed the css in Please help, Details: |
Hi Jason, You could add your CSS edits to a plugin like My Custom CSS. — |
|
|
I’d rather just add the CSS to my theme stylesheet. Is there a way my own styles can override? |
Hello, You can add your custom CSS styles there as well but if your theme auto updates itself, then your edits will be lost. — |
|
|
Hi, I have a custom theme, so the theme won’t auto update. I added the invoice styles to my theme stylesheet, but it doesn’t override. The invoice doesn’t appear to be calling the theme’s style.css at all. Is there a way my own styles can override? Thanks, |
Hi Jason, There is a way and I can outline the steps. Please note that these instructions are for Event Espresso 4.2 and may change in future versions because we’d like to make this simpler. Step one is you modify invoice_header.template.php to include your custom styles. You could either (a) change line 11 to link to your copy of union.css that’s uploaded to your theme or to another location on your server. You’ll need to change the full path as the one that’s there now is a relative path. or (b) add your custom styles inline, directly to the template after line 15. Then you copy the modified template to /wp-content/uploads/espresso/templates/modules/gateways/Invoice/lib/templates and it will load from there. One of the developers said he is going to think of a way to make this simpler (hopefully with fewer paths). For now, you need to set up a file path that matches what’s inside the core plugin. As an aside, there is an open ticket for making the left column in the invoice wider for all the templates to accommodate medium-long business names and addresses. |
|
|
Yes, that’s the main reason I want to change it – accommodating longer business names and addresses. Thanks! |
The support post ‘PDF Invoice custom CSS’ 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.