Images not Loading in HTML block.
Permalink
Using latest version 5.7.4.2 (I think) I've edited content with HTML Block using this code...
..and I am not getting any image loaded up from theme/asset/img folder. Why? How can i fix this problem?
<div class="row text-center"> <div class="col-md-4"> <img src="<?=$view->getThemePath()?>/assets/img/super.png" alt="Super-licious"> <p>Super-licious! This is going to be EXTREME! </p> </div> </div>
..and I am not getting any image loaded up from theme/asset/img folder. Why? How can i fix this problem?
Hi AndyJ,
I've tried your method...
I end up seeing "server configuration" list of data from my host (Not good) and I had to refresh in order for it to get back to normal...Although image still doesn't show up. I think, there are bugs in this HTML block.
I've tried your method...
<img src="/application/themename/assets/img/super.png" alt="">
I end up seeing "server configuration" list of data from my host (Not good) and I had to refresh in order for it to get back to normal...Although image still doesn't show up. I think, there are bugs in this HTML block.
Hi AndyJ,
I've tried your method...
I end up seeing "server configuration" list of data from my host (Not good) and I had to refresh in order for it to get back to normal...Although image still doesn't show up. I think, there are bugs in this HTML block.
I've tried your method...
<img src="/application/themename/assets/img/super.png" alt="">
I end up seeing "server configuration" list of data from my host (Not good) and I had to refresh in order for it to get back to normal...Although image still doesn't show up. I think, there are bugs in this HTML block.
hi,
what happens if you add:
http://mywebsitename/application/themename/assets/img/super.png...
into the address bar of your browser?
Do you see the image? When you say it shows you server config details what exactly are you seeing?
what happens if you add:
http://mywebsitename/application/themename/assets/img/super.png...
into the address bar of your browser?
Do you see the image? When you say it shows you server config details what exactly are you seeing?
You'll need to put a full path to the image in the html - so you'll need to include the package / theme etc directory depending on how/where your theme is installed.