I had before a Gallery working on a Layout, but now (i don't know why) is not showing the images.
The Layout code is
<div class="flexslider">
<ul class="slides">[wpv-for-each field="wpcf-imagenes-destacadas-rcc"]</p>
[types field='imagenes-destacadas-rcc' alt='%%ALT%%' title='%%TITLE%%' size='large' align='none' resize='proportional' separator=', '][/types]
<p>[/wpv-for-each]
</div>
The JS code is
// Can also be used with $(document).ready()
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide",
animationLoop: true,
itemWidth: 210,
itemMargin: 5,
minItems: 2,
maxItems: 4,
controlNav: false,
directionNav: false,
});
});
/* JS para MAGNIFICPOPUP (Plugin de visualización de imágenes que viene por defecto en Kleo)*/
$(document).ready(function() {
$('a.btn-gallery-localizacion').on('click', function(event) {
event.preventDefault();
var gallery = $(this).attr('href');
$(gallery).magnificPopup({
delegate: 'a',
type:'image',
gallery: {
enabled: true
}
}).magnificPopup('open');
});
});
and the CSS code is
Link to a page where the issue can be seen:
hidden link
I expected to see:
If you click on "Ver galería" button the Magnific Popup should be launched
Instead, I got:
Nothing happens when I click the button
*I provide access to a test site where you can work without problem.