How to enable a theme for your Magento mobile web site?

You can use execeptions (the good kind) to show different templates on mobile devices.

To add exceptions for the mobile devices, navigate to the Magento administrative area -> System -> Configuration -> Design -> Themes. Click on the Add Exceptions buttons besides the Templates, Skin and Layout labels.

Enter the following line in the Matched Expression field:

iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini

In the Value field enter the name of your newly installed mobile theme and Save the changes.

Then you can open your web site through your computer and your mobile phone. You will see that it loads with two different themes depending on the device.

Published by

BlackRhino

I am a 80's child - the NES, N64 generation old enough to remember Boulder dash - young enough to play Call of Duty. I have been developing in PHP for over 10 years - I've been working in Unity 3D for the past 6 months as I expand my skills into Games Development - Magento development helps to pay the bills.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">