we can call the images and js files inside the template’s skin folder in an phtml file by the following code snippet

<?php echo $this->getSkinUrl('images/image.jpg') ?>
<?php echo $this->getSkinUrl('js/sample.js') ?>

And in static block we can call it as

{{skin url='images/image.jpg '}}
{{skin url='images/js.jpg '}}

To get the media url in static block use the code

{{media url='/image.jpg'}}

Leave a Reply

Your email address will not be published. Required fields are marked *