Sometime during recent upgrades to the theme, my site has lost the ability to be zoomed on an iPad. I’ve had a few readers contact me about this.
How can I fix this?
Thanks,
Kirk
Hi kirkmc!
The theme has always been set to have no zoom on ipads (because its responsive). You could edit the header.php where that is set and remove it. Look for:
if( strpos($responsive, 'responsive') !== false ) echo '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">';
and remove the maximum-scale=1
Regards,
Devin
Thanks!
Kirk
Wait, I don’t have the code you mention above. I have this:
if( strpos($responsive, ‘responsive’) !== false ) echo ‘<meta name=”viewport” content=”width=device-width, initial-scale=1, user-scalable=1″>’;
Kirk
Remove: user-scalable=1
See this for a full breakdown of the viewport meta https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag
Thanks.
Kirk