So recently a kind soul gave me some code to re-direct to a mobile subdomain like m.site.com, but I have been trying to wrap my head around this task a little more deeply. Maybe I am having a conceptual problem here.
I want to use a mobile template for multiple pages across multiple standard templates. I want to "force" the mobile html template but still get the same page contents. If I could avoid taking the js and css, I would, as I said I can use media queries in the standard css to try to approximate this.
I can use media queries, which seems to me to be a good stop-gap measure, but its not a perfect solution. Why can't I just determine the device and provide only the relevant css, js and even html template?
The code is here:
<script type="text/javascript">
<!--
if (screen.width <= 720) {
document.location = "
http://wap.mobilesite.com";
}
//-->
</script>
Ok, so that sends the query from www.website.com/requestedID to wap.website...so then just the right re-write rules and it would work by grabbing the right page contents through the page id?
Is it like multiple templates per resource or what? I am in serious bafflement even after long consideration.