I'm using CiviCRM 4.7.16 with Drupal 7.

In the previous versions, the invoice tpl file can be found by viewing the page source html in the browser. It's in a comment line and it is something like

<!-- xxx.tpl file invoked ... -->

But I couldn't find these comment lines when viewing source in CiviCRM 4.7.16.

How do I find the invoked template in 4.7?


  • Can you give us a description of what you are wanting to accomplish?
    – Christia
    Feb 15, 2017 at 22:02
  • What is the url you are looking at the source for? You get only the first .tpl invoked, and it may include others.
    – Joe Murray
    Feb 16, 2017 at 11:53

1 Answer 1


In current 4.7 you need to enable debugging for the tpl to be shown in the source. Go to Administer > System Settings > Debugging and Error Handling then select Enable Debugging and save. Remember to disable it when done.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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