I've created a custom block in D8 via the UI. Is there any way to reference the files path in order to use images in the block without having to create a module?


I might be misunderstanding, but in a custom block you should be able to use standard img tags to display an image you've uploaded to your site.

| improve this answer | |
  • Yes, but the img tag needs the path to the image, and I'm looking for a way in D8 to not hardcode that path. – JAyenGreen Jul 24 '17 at 12:07

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.