I can't find how to get image url. I have images in /themes/custom/mytheme/img directory. I think there must be some way to get path to current theme or somethink like that.


You can use {{ directory }} for the path to your theme. Then you just need to add /img/yourimage.jpg.

  • it outputs as relative path (without leading /), is it right?
    – Krab
    Oct 15 '15 at 14:48

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.