Hi
So 1 year and 5 months later, I'm trying to do the same thing with Gantry Version: 4.1.25 and the basic template.
I've done the following:
To do this you can override the iPhone and Android template files to load a custom stylesheet. First copy the index-iphone.php file from plugin's /tmpl directory to your theme's root directory and open it up. Now find this line:
</head>
and add this bit before it:
$gantry->addStyle('mobile-custom.css');
Now you can create a file named mobile-custom.css in your theme's /css directory and it will only load on mobile devices.
However, when it comes to next bit
..add an option for it in the templateDetails.xml file, right below the line for Enable iPhone option:
<field name="android-enabled" type="toggle" default="1" label="Android Custom Theme" />
This adds the option to the theme settings page which you can enable and then Gantry automatically grabs the index-android.php file when a visitor is using an Android device.
I find nothing at all for the iphone in the templatedetails file.
How can I get this to work so that the new css files will be used? I'd be very grateful for an update here, relating to the latest version of gantry.
Regards
David