Magento – How to Add Desktop Version and Mobile Version Link

theme

I have added theme Exception for mobile user in System >> Configuration >> GENERAL >> Design.

And I want to add desktop version and mobile version link so the user can switch it.

I have no idea how to do this. Tell me where to start to make this feature?

Best Answer

Write below code in action to set Package and theme for the action

Mage::getDesign()->setArea('frontend') //Area (frontend|adminhtml)
->setPackageName('default') //Name of Package
->setTheme('modern'); // Name of theme
Related Topic