shashank shashank - 3 years ago 104
PHP Question

How to get current theme name in Magento

In magento i am trying to get current theme or package name but not found anything.
I used getSkinUrl(') but it's return skin path not package or theme name.please help me how i can get theme or package name.

Answer Source

Current Package

Mage::getSingleton('core/design_package')->getPackageName()

Current Theme (frontend)

Mage::getSingleton('core/design_package')->getTheme('frontend')
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download