- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2020
03:15 AM
03-05-2020
03:15 AM
I have extended Module_Contact to show an image at the end of the form. But it doesn't show. I put the image in app/design/frontend/vendor/customTheme/Module_Contact/web/images
and also tried in customTheme/web/images but nothing.
The reference is src="images/img.jpg"
Am I doing things right?
Solved! Go to Solution.
Labels:
2 ACCEPTED SOLUTIONS
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2020
03:44 AM
03-05-2020
03:44 AM
So Shouldn't use only html <img src="..." >?
I try with this, but it only shows me the URL
<?php echo $block->getViewFileUrl('images/map.jpg'); ?>
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2020
03:51 AM
03-05-2020
03:51 AM
Hi @mauri_mono
You need to use like below example:
<img src="<?php echo $block->getViewFileUrl('images/map.jpg'); ?>" >
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2020
03:21 AM
03-05-2020
03:21 AM
Re: image doesn't show
Hi @mauri_mono
Try the below stack solution.
https://magento.stackexchange.com/a/93697
I hope it will help you!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2020
03:44 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2020
03:51 AM
03-05-2020
03:51 AM
Hi @mauri_mono
You need to use like below example:
<img src="<?php echo $block->getViewFileUrl('images/map.jpg'); ?>" >