Essentially is there a way to use a function in functions.php to turn the <body>
tag into <body class="mobile">
? I have code that recognizes mobile devices but right now it's set up to load a mobile.php page include(STYLESHEETPATH."/mobile.php");
, which isn't quite what I want.
I've tried all sorts of mobile site plugins like WP mobile, mobify, etc. None of them work the way I want and I'd rather not mess with that anymore. Please don't suggest that.
I know this is kind of a newbie question but I can't find any info on it anywhere. Thanks for your time.