New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Best way of splitting theme by device

Thomas Edwards September 15, 2014 by Thomas Edwards

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?


  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!
>>>>>>> Answered <<<<<<<
15 Replies