Open lightbox via PHP code

[ad_1]

I am using Ajax Load More to retrieve images, How could I use lightbox when images are clicked? Help is appreciated. Thanks!

<div class="alm-gallery-img">
   <a href="https://projectdmc.org/support/topic/open-lightbox-via-php-code-2/<?php echo $image ?>" target="_blank" class="popup">
      <img src="<?php echo $image?>"/ data-lazy="true" style="" class="loaded">
   </a>
</div>

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer