Hello everyone, such a problem - In the mobile version you need to scale the images with gestures when the photo opens in the plugin. But, since scaling is disabled in the mobile version ( <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> ), the photo does not increase if I turn it off ( <meta name="viewport" content="width=device-width, initial-scale=1"> ), then it starts to float. Could you somehow make CSS or JS means ZOOM if the img tag is open, or what other ways are there?

Plugin: Pretty Photo CMS: Wordpress

A good example of what you need is m.vk.com
And that is, from a mobile device you can not scale the page, and when you open a photo, you can increase or decrease it.

enter image description here

  • CSS Media Queries to help you - MasterAlex
  • @MasterAlex, I wonder how he will help me, do not tell me? I have a problem not in adaptability, but in scaling pictures in adaptive design - Konstantin
  • Add code to the question: HTML-code of the functional, script code, css, name of the plugin. And from your explanation, little is clear, for example, the phrase: так как в мобильной версии вообще отключено масштабирование, то и фото не увеличивается, если отключаю, то начинает все плыть . What is disabled? What else do you turn off? Nothing is clear from verbs without nouns. Media Queries can help in order to set the size of the image, but you can and generally another image in the mobile version. - MasterAlex
  • Incidentally, the phrase Можноли как-то средствами CSS или JS прописать увеличение фото на тег img also does not particularly explain what you need. Firstly, it is not written on what event the image should increase, secondly, if there is an event, there should be an zoom algorithm, the initial state of the photo -> the final state of the photo. In general, your text gives rise to more questions than answers, so for an hour there is utter silence in the question. - MasterAlex
  • @MasterAlex, described the problem in more detail above. - Konstantin

0