Current Skin Url

I want to get skin URL of my current theme. At present I am working in Magento "rwd" theme.

And I am using below code to get skin URL:


This returns me URL http://localhost/magento/skin/frontend/default/default/

but I need URL like: http://localhost/magento/skin/frontend/rwd/default/

Please help me.


You can easily avail the current URL of your existing Magento theme by using the below-mentioned code:

<?php echo $this->getSkinUrl();?>

I have used following command to get different URL in magento Get Url in phtml files

1. Get Base Url :


2. Get Skin Url :


(a) Unsecure Skin Url :


(b) Secure Skin Url :

$this->getSkinUrl('images/imagename.gif', array('_secure'=>true));

3. Get Media Url :


4. Get Js Url :


5. Get Store Url :


6. Get Current Url


Get Url in cms pages or static blocks

1. Get Base Url :

{{store url=""}}

2. Get Skin Url :

{{skin url='images/imagename.jpg'}}

3. Get Media Url :

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

4. Get Store Url :

{{store url='mypage.html'}}

I think this will help you.

When you are using

Mage::getDesign()->getSkinUrl($file = null, array $params = array());  

You should pass in the $file parameter for the resource you are trying to retrieve; e.g.:


Magento will automatically search in your site's set theme first and if it's not there it will continue its search using the theme fallback.

Tags: Magento 1.x / Theme / Skin

Similar questions

{{skin url=""}} is removed
I am facing a problem, whenever I am editing CMS page by using editor that time all of the {{skin url=''}} is being removed automatically. Can anyone please advice me some solution?
Server folder appears as output url for media, js and skin
Any ideas why Magento sets the beginning of the media, skin and js url's like this /var/www/ instead of normal like it has been set in unsecure_base_url and secure_base_url? I have set up full url for each (js, media and skin) in database so I'm not sure where does that server folder come from.
Magento skin url 'default' replaced with 'theme'?
I am using a custom theme on magento and in my header.phtml, used the following code: When I first load the homepage, the getSkinUrl gives me this path: However, when I load any other page, I get: I could...
Magento 1.x Best way to get admin skin URL from frontend
What is the best way of getting the URL path of the current admin skin theme directory. I am aware of Which will return the URL of the front-end skin theme directory. Is there an Adminhtml equivalent? Many thanks
How to get current category name by current category url in observer magento2
I want to get category name by current url in the observer. I have tried most common code but not working, so I am trying to get category name or id by current url. For example, current url is : http://example.php/food.html. Here I want category id by this url. I have tried this in my observer : Anyone have an idea for that, please?
Setting media/skin urls to another domain breaks image uploader in wysiwyg editor
If I set the "Base skin URL" and " Base media URL" to a domain other than the one used for the "Base URL" the image uploader in the WYSIWYG editor breaks. The "Media storage" popup appears and I can select an image using the "Browse files..." button but any file I select isn't shown in the list and the " Upload files" button does nothing what so ev...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.