Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #289373

    Hi,
    I would like my visitors to be able to zoom in on the image of a dinner menu on their mobile phone (and ipad). The site needs to be responsive but when I turn on this option I can no longer zoom in on images.
    How can I fix this?
    Thank you.
    Kind regards,
    Charlotte

    #289737

    Hi Boulanger!

    You would need to edit this snippet in the header.php:

    
    <!-- mobile setting -->
    <?php
    if( strpos($responsive, 'responsive') !== false ) echo '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">';
    ?>
    

    The content can be modified based on the viewport meta settings. Removing the maximum-scale would allow for zooming.

    Regards,
    Devin

    #311894

    Hi Devin,
    Thanks a lot. Fixed it!
    Regards,
    Charlotte

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘zoom in on images on mobile (and ipad)’ is closed to new replies.