cancel
Showing results for 
Search instead for 
Did you mean: 

image doesn't show

SOLVED

image doesn't show

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?

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: image doesn't show

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');  ?>

View solution in original post

Re: image doesn't show

Hi @mauri_mono 

You need to use like below example:

<img src="<?php echo $block->getViewFileUrl('images/map.jpg'); ?>" >

 

 

View solution in original post

3 REPLIES 3

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!

Re: image doesn't show

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');  ?>

Re: image doesn't show

Hi @mauri_mono 

You need to use like below example:

<img src="<?php echo $block->getViewFileUrl('images/map.jpg'); ?>" >