Amazingly specific requirement: I’m making a feature phone version of a site that’s using Statamic. It’s easy enough, I just create a new theme that uses WML rather than HTML – but I need to be able to choose the template based on the user agent.

Any idea what the best way would be of doing that?

FAQ

  1. Using the user agent to detect feature phone is supported and recommended by Google.

  2. This is the recommended way of dealing with this type of content across different markets, rather than using m..

  3. No you can’t use CSS to just do it, feature phones use WML.

  4. No I can’t tell my users to get smart phones because they live in India and Indonesia and earn less than $1,500 a year.

Answered by Jason Varga! Go to answer.