How to use Different themes for Mobile App & site
-
15-04-2021 - |
Question
I am new to Magento and I am planning to create a mobile app for my store. Since I cannot build or afford a mobile app for myself, I am planning to build a mobile app that simply redirects to my website but with different theme that I would like to use to make more easy for app users.
If anyone know how this can be done please help me.
Solution
Sure, you can do this by Magento admin. Go to System > Configuration > General > Design -> Package and Theme sections
.
Click Matched Expression
and this:
iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini
This settings will be use for detecting Mobile devices.
You can create New Package and Theme for mobile devices as shown below:
From above,
create new Package at : \app\design\frontend\mobile_package\
and Theme at : \app\design\frontend\mobile_package\mobile\