Posted: July 13, 2023 at 8:37 am
Hi, the #logo-dv img used on the invoice template seems to be set at 300px and I can’t seem to change it. 300px wide is just too big for our logo and I need to reduce it to 100px wide. The invoice image uploaded is 100pxx100px, but on the invoice it scales to 300×300. I have tried overriding the style using a custom style in my theme editor. That didn’t work. I then went into the plugin editor and updated event-espresso-core-reg/modules/gateways/Invoice/lib/templates/base.css And adjusted that – still no luck. I also tried editing espresso_replace_invoice_shortcodes in event-espresso-core-reg/modules/gateways/Invoice/lib/Invoice.class.php To remove the hard-coded width attribute but still no luck. Any Advice on how to change the image size on these invoices? |
|
Link to invoice template I am trying to change looks like this: |
|
Hi there,
Scratch that, me being completely oblivious to your second post! The
Which is basically grabbing the size of the image and using it within the img tags as the width. If the image is greater than 300px wide, it uses 300px, but it should still allow you to set a smaller image as long as that is what has been uploaded, EE will use the smaller version up to 300px. |
|
Ok, so did a little digging into this and the problem is obvious now… Inside Around line 500 you’ll find the snippet from above.
Is incorrect, its the opposite of what it should be. It should be:
Set that in your version and it should fix the logo size for you. I’ve created a ticket to update our code in the next version. |
|
Tony, Thank you – this worked like a charm. Hopefully a permanent fix will be in the code base soon. |
|
The support post ‘Invoice Image Size set to 300px, can't make smaller?’ 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.