[BNM] WordPress n' handhelds

Chris Billett chris at chrisbillett.net
Wed Dec 12 15:08:11 GMT 2007


Ok, I binned the original thread, sorry, but just got some info from some
old colleagues... 'ere ya go...

Ganly:
don't know wordpress very well but i'd imagine you'd do a conditional on
the user agent...

Rangi:
You could also look into css media types, eg.

<link rel='stylesheet' media='screen' href='styles.css' type='text/css'>
<link rel='stylesheet' media='handheld' href='handheld-styles.css'
type='text/css'>

In theory the mobile device should favor the "handheld" media type and
load that stylesheet instead of the screen one (used by computers), n
practice there are so many mobile devices out there and many of them wont
be standards compliant, so basing it on the user agent would probably be
more reliable.


Ganly:
oh yeah, good call rangsters!

i used to use this when i was doing wap stuff.

http://wurfl.sourceforge.net/backgroundinfo.php

it aims to be a definitive list you can use in your proggies "You can
think of the WURFL as a global database of all devices and their
capabilities.".

i'd try the css way first and then use a emulator to test against
handhelds/mobiles to see what it delivers (though when i was doing wap
stuff the emulators often displayed different stuff to the actual
phones!!).



More information about the BNMlist mailing list. Powered by Wessex Networks