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...
<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?

 
WebcentricLtd replied on at Permalink Reply
hello - if you are using the html block then using php to set the theme path won't work.

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.
APrather replied on at Permalink Reply
Hi AndyJ,

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.
APrather replied on at Permalink Reply
Hi AndyJ,

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.
WebcentricLtd replied on at Permalink Reply
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?