I am writing a simple plugin and I want to use some images within the plugin. I assume that the *themes/third_party*-folder is the right place for those. How can I use them? I cannot link to them directly (e.g. <img src="/themes/third_party/...") because the folder is not directly accessible.


ExpressionEngine have Path Constants. You can use PATH_THIRD_THEMES. You should have image path like:

$img = "<img src='".PATH_THIRD_THEMES."IMAGE_NAME' />";

I hope, it would help you.

| improve this answer | |
  • Path constants :) – erwinheiser Feb 10 '13 at 13:26
  • corrected it. sorry for misspell :) ... – Bhashkar Yadav Feb 10 '13 at 13:38
  • Thanks! With URL_THIRD_THEMES it works! – Lars Bilke Feb 11 '13 at 8:27

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.