Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/customer/www/nudge.ca/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 383
Update: I am no longer using this method but rather have reverted back to the original meta tag which is now working great.
<meta id="view" name="viewport" content="width=device-width, initial-scale=1.0" /> |
Removing the users option to zoom probably wasn’t the best solution but served the purpose at the time.
< /end update>
—————————————————————-
This little bit of information arrived into my inbox this morning via a friend and it got me so excited I had to share it.
You know how when you rotation your iPhone or iPad from portrait to landscape your site doesn’t resize properly? Yeah, that annoying thing.

Well folks, here is the fix.
All you need to do is switch this lovely meta line
<meta id="view" name="viewport" content="width=device-width, initial-scale=1.0" /> |
To this
<meta name="viewport" content="width=device-width, maximum-scale=1.0, minimum-scale=1.0, initial-scale=1" /> |
And *Presto*! It’s now resizing properly.
Until this morning the only fix I knew about was a javascript one, which IMHO, is not a great solution. I’m pretty sure I’ve seen similar solutions in the past, so I’m not quite sure why this is now working. Feel free to let me know in the comments if you know.
Where might one find this line of code? Say, if one were using a wordpress theme called Grisaille.
😉
Thanks,
Bill
God bless your soul! I am doing my first responsive design and and been tearing my hair out over this one. What an easy fix. Thank you so much for sharing!!
Really very useful data…
I have this problem in one of my website and now it’s working properly in iPad…
Thank You.
This worked great for the iphone version but the iPad version looked not so great.
Has anyone had experience dealing with both?
Oh how I wish I could go back in time and gain back the last three hours I’ve spent racking my brain on this one,
worked splendidly!
THANK YOU!
I’m with Eric on this one… you, my friend, have saved at least 6 hours between Eric and I. That’s a lot of energy! Well done 🙂
I figured this one out the hard way after spending hours scaling my fonts to 200%. What an easy fix! One thing to watch out for, however, is that is your site is not responsive, don’t use the tag because it can make it difficult to navigate.
Doesn’t that prevent The usar from zooming?