Closed (fixed)
Project:
Mobile Theme
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Jun 2012 at 21:35 UTC
Updated:
4 Jun 2015 at 14:00 UTC
Jump to comment: Most recent
Comments
Comment #1
awm commentedSo I needed to detect ipad user agent and treat it as a mobile device to load an appropriate theme. Here is what I did:
1. Implement hook_mobile_theme_detection in the following manner:
2. implement in the following manner
Then choose detect ipad from the detection settings under appearance/ settings.
HTH others
Comment #2
awm commentedComment #4
caspervoogt commentedThanks. This worked for me, as I needed to detect smartphones AND iPads, not just smartphones only.
Comment #5
charlysole commentedImplement ok... but where?
Thanks