How to find Magento skin image URL in .phtml page inside

Just put this code where you want:
$this->getSkinUrl(“images/sample.jpg”)

– This skin url code: $this->getSkinUrl

Example:

echo ‘.main { background:url(‘.$this->getSkinUrl(“images/sample.jpg”).’) 0 0 repeat-y !important}’;

<img src=”$this->getSkinUrl(“images/sample.jpg”)”>

© 2020 Spirituality