I incorporated Nivo Lightbox into my website, seamlessly integrating all images with the plugin using the following code:
<div class="portfolio-item">
<div class="portfolio-thumb ">
<a class="lightbox" data-lightbox-type="ajax" title="Strategic Planning Tahun Buku 2016 - 2020" href="{{ asset('images/tentang_cu.jpg') }}">
<div class="thumb-overlay"><i class="fa fa-arrows-alt"></i></div>
<img src="data:image/png;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="
data-src="{{ asset('images/tentang_cu.jpg') }}" width="800" height="450">
</a>
</div>
In addition to this, I applied CSS styling to create an image masking effect that hints at Nivo Lightbox functionality.
My query is as follows:
Within my article view, I utilize a text editor with Summernote and sometimes incorporate images. How can I automatically embed these images with the corresponding HTML and styling for Nivo Lightbox? Is there a way to include
<div class="portfolio-item">
etc., in order to maintain consistency across all images on my site?
This uniform approach ensures that all images are accessible through Nivo Lightbox.