Nextgen had been set to apply lightbox to all images on the site.
This caused every single image to spawn a lightbox, like head logo.
Only set to Nextgen images again, which required ngg-fancybox to
recognise an element (even video) as a "nextgen image". Was
previously removing that class to attempt to get it to work at all.
jQuery(function() {
jQuery('.enews-signup > a').replaceWith('<?php echo $modal_link; ?>');
jQuery('.enews-signup > a').on( "click", function() {
- jQuery(this).modal({
- closeText: '×',
- fadeDuration: 250
- });
+ jQuery(this).modal({
+ closeText: '×',
+ fadeDuration: 250
+ });
- return false;
- });
+ return false;
+ });
});
</script>
var $=jQuery.noConflict();
-;
-jQuery(document).foundation();;// Joyride demo
+;jQuery(document).foundation();;// Joyride demo
$('#start-jr').on('click', function() {
$(document).foundation('joyride','start');
});;
<script>
jQuery(document).ready(function(){
jQuery(".ngg-fancybox").each(function (){
- jQuery(this).removeClass("ngg-fancybox").addClass("various iframe");
+ jQuery(this).addClass("various iframe");
jQuery(this).attr("href",jQuery(this).children("img").attr("title"));
});
});