Here's some code I wrote to automatically turn any Wordpress generated thumbnail into a modal Reveal from Foundation's reveal plugin:
jQuery(function($) {
$(".size-thumbnail").each(function(index){
var html;
var parent = $(this).parent();
html = "<div id='reveal-"+index+"' class='reveal-modal'>";
html +="<img src='"+parent.attr('href')+"' />"
html += "</div>";
parent.attr("data-reveal-id","reveal-"+index);
$("body").append(html);
});
});
Here's some code I wrote to automatically turn any Wordpress generated thumbnail into a modal Reveal from Foundation's reveal plugin:
I put it in footer.php