There is a code
"<div class='news-img-area'><center><a href='/upload/" . $img . "' data-rel='lightcase'><img src='/upload/" . $img . "'></a></center></div>";
How can you do this:
if ($(window).width() < 701) { удалить a href из кода указанного выше (чтобы показывалась только картинка без перехода по ссылке) }
@media screen and (max-width: 700px)
controls their visibility - either one or the second container will be hidden . Minus - a bit more code in the markup, plus - it makes the browser, not you) - Mi Ke Bu