Adam Allen
Adam Allen

Reputation: 208

How to show an extra image in Header

I am trying to add an image to my header.phtml so I can show my delivery charges next to my logo.

But I keep just getting an broken link image, could osmeon tell me where I am going wrong please? I know the file path is correct because i have used this same path in another place in my website

            <a href="/shipping"><img src="<?php echo $this->getSkinUrl('/media/catalog/category/fp-suppliesconsumcat.gif'); ?>" alt=""></a>

Upvotes: 1

Views: 462

Answers (1)

Keyur Shah
Keyur Shah

Reputation: 11533

It loos like your are calling media url in getSKinUrl() . You have to use this to display image

        <a href="/shipping"><img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA)."/catalog/category/fp-suppliesconsumcat.gif" ?>" alt=""></a>`

Let me know if you have any query

Upvotes: 2

Related Questions