I am using Civi 4.7.29 on Wordpress 4.9.1

I need to make our online receipts look nicer. I tried adding a table to the template Contributions - Receipt (on-line) and adding the HTML for the logo image, but nothing changed in the test. How do I add the logo to the receipts and do other styling?

Thank you.

Added Screenshot

enter image description here

  • The source code for the message template "Contributions - Receipt (on line)", which is a System Workflow Message, already contains at least 2 tables. At about Line 16, the first table contains the following text <!-- BEGIN HEADER --> <!-- You can add table row(s) here with logo or other header elements --> <!-- END HEADER --> I assume that it is at this point, you are trying to insert some more code. Is that correct and if so, could you elaborate on the code that you have tried to insert?
    – peterb
    Feb 3 '18 at 18:28
  • That is correct. The code looks like this <tr><td><img src="oursite.org/images/logo.jpg"></td></tr>
    – fdarn
    Feb 3 '18 at 19:59
  • The page uses XHTML (not HTML) and therefore all XHTML elements have to be closed. Could you try putting in a closing forward slash in the image element so that it reads <img src="oursite.org/images/logo.jpg" /> and see what happens.
    – peterb
    Feb 3 '18 at 23:23
  • Thank you. That didn't work either. I tried several times and cleaned the cache. The result was the same each time. Below is my code. It might help if I can see what someone else is using.
    – fdarn
    Feb 4 '18 at 1:49
  • code<!-- BEGIN HEADER --> <tr> <td><img src="oursite.org/wp-content/uploads/Header-001-1.jpg" /> </td> </tr> <tr> <td> {if $receipt_text}code
    – fdarn
    Feb 4 '18 at 1:51

This issue has been resolved. I am almost too embarrassed to tell you what the problem was.

All this time, I was working on the Contributions Receipts, but doing my tests on a Membership page. As soon as I noticed there was also a Membership receipt it all came clear. So, if anyone else ever runs into this issue, remember if it's a contribution but not a membership, it uses the Contribution Receipt. If it's a membership it uses the membership receipt.

Thank you everyone for trying to help me figure this one out. You did open my eyes to a lot of possibilities.

  • Good to get these things clarified for others.
    – petednz - fuzion
    Feb 8 '18 at 20:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.