I needed to have touchscreen support for iOS and Android on my Danland themed site, so I tried using the Superfish module. The problem is that it adds its own CSS and the result is not pretty. Rather than trying to modify that module, I decided to try bringing touchscreen support into Danland directly. After some trial and error, I found that the following recipe worked for my site.
1. If you are using Drupal 6, download and install the jquery_update module. You need one that updates jquery to at least 1.3.x, so for D6, you need 6.x-2.x-dev. For D7 or greater, you don't need to do this. D5 will not accept the upgrade, so you're stuck.
2. Download the superfish-library-for-drupal-v1.zip file linked from the Superfish module page, but don't install it. Open the zip file and extract the sftouchscreen.js file from it. Copy that file to the sites/all/themes/danland/scripts folder.
3. Edit sites/all/themes/danland/danland.info and add this line to the "scripts" section:
scripts[] = scripts/sftouchscreen.js
4. Clear your caches and reload the page in the browser. You should have touchscreen support in Danland.
I hope this helps someone else.
Comments
Comment #1
danpros commentedHi,
Thank you! this is very helpful for other users :)
Need more testing for its stability before I can add this feature into Danland core, yes like conflict possibility with contribute modules etc.
I will add this in the Docs.
Dan
Comment #2
onefiftyfour commentedHow do you set options for sftouchscreen?
Thanks.