0

Magento 2.2.2

How to use Image file available in the web folder. I am trying to access image file in layout/footer.phtml file and the image is available in the web/images/ folder

1 Answer 1

2

Please try below code:

<img src="<?php echo $this->getViewFileUrl('images/your-image-name.jpg'); ?>" alt="">
1
  • Welcome :) Please let me know what you did? Commented Feb 13, 2018 at 11:09

Your Answer

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