<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Tag: Android</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Fri, 24 May 2013 21:47:18 +0000</pubDate>

<item>
<title>amzero427 on "Initial scale for iPhone/Android"</title>
<link>http://themeshaper.com/forums/topic/initial-scale-for-iphoneandroid#post-21594</link>
<pubDate>Wed, 01 Jun 2011 21:16:10 +0000</pubDate>
<dc:creator>amzero427</dc:creator>
<guid isPermaLink="false">21594@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I'm changing this to not a support question.  After some time, I decided to go with an alternate css for mobile devices instead of trying to find a way to alter the initial scale, but if anyone does find a way to do this I'd love to hear it.  Gotta say though, I was reluctant to go the css route, but it was much less time consuming than I imagined, and with a fluid/responsive layout it works great:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://themeshaper.com/forums/topic/responsive-web-design-and-thematic&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/responsive-web-design-and-thematic&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>amzero427 on "Initial scale for iPhone/Android"</title>
<link>http://themeshaper.com/forums/topic/initial-scale-for-iphoneandroid#post-21580</link>
<pubDate>Wed, 01 Jun 2011 01:04:17 +0000</pubDate>
<dc:creator>amzero427</dc:creator>
<guid isPermaLink="false">21580@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;First of all, just wanted to say thanks to everybody for the thematic forums and all their input!&#60;/p&#62;
&#60;p&#62;I have a question about changing the content width and initial scale for viewing on an iPhone.  Apparently, to adjust for iPhone, the tags look something like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;meta name=&#38;quot;viewport&#38;quot; content=&#38;quot;width = 320&#38;quot; /&#38;gt;
&#38;lt;meta name=&#38;quot;viewport&#38;quot; content=&#38;quot;initial-scale=2.3, user-scalable=no&#38;quot; /&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I was wondering if their was a way to set a function using javascript, either in the functions.php or the header.php, that can set the initial scale only when the device is an iPhone or Android device, but leave it alone otherwise?  I took a stab with &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
 function setViewPortWidth(width) {
    if((navigator.userAgent.match(/AppleWebKit\/(.*)Mobile\//))&#124;&#124;(navigator.userAgent.match(/Android(.*)Mobile/))) {

    element.setAttribute(&#38;#39;content&#38;#39;,&#38;#39;width = 320&#38;#39;; &#38;#39;initial-scale = 2.3, user-scalable = no&#38;#39;);
    document.body.style[&#38;#39;max-width&#38;#39;] = width&#38;#39;320&#38;#39;;
   }
  }
 }
 &#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Which totally didn't work and probably looks ridiculous to anyone who's not a noob like myself.  But am I at least on the right track?  Or is this an all together bad idea?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
