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.

1 Answer 1


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.

  • Path constants :) Feb 10, 2013 at 13:26
  • corrected it. sorry for misspell :) ... Feb 10, 2013 at 13:38
  • Thanks! With URL_THIRD_THEMES it works!
    – Lars Bilke
    Feb 11, 2013 at 8:27

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.