I'm using the LightGallery plugin, on the page I have several galleries, I'm only displaying one image from each gallery, to that when clicking on this image it will open its respective gallery.
<img src="assets/images/lisboa/1.jpg" id="galeria_1" galeria_id="galeria_1">
$(document).ready(function() {
$('#galeria_1').on('click', function(){
var galeria_id = $(this).attr("galeria_id");
$("#"+galeria_id).lightGallery({
download: false,
counter: false,
hash: true,
galleryId: galeria_id
});
});
});
There is simply nothing wrong with the console.