Hi, I need create dynamic content in my website, galleries are with external images in flickr and others in our servers via CDN, we create the html that will be include in templates with a custom template inside a enfold child theme, but I’d like to know the html and css classes that I need create for a mansory gallery (or javascript, no problem I can include html, jss, css or php in this template).
I prove with:
<div id="av-masonry-1" class="av-masonry noHover av-flex-size av-large-gap av-hover-overlay- av-masonry-col-automatic av-caption-always av-masonry-gallery avia_sortable_active">
<div class="av-masonry-entry">
<a href="/includes/concurso_06/medianas/edicion_1_foto_113.jpg" title="My Title">
<img src="/concurso_06/miniaturas/edicion_1_foto_113.jpg" alt="My Title">
</a>
</div>
</div>
This code will be in a WP page that use custom template. Must I initialize mansory with jquery? or what is the correct div structure and classes?
Thanks in advance.
Hey Carlos!
I’m not sure what you are trying to do there, do you want to rebuild it from scratch using just html to be used in a template or do you want to add the code in the ALB?
Best regards,
Rikard
Yes, I’ve a template that include a html file (dynamically created from server with a cron task), the html file included in that template must be a masonry gallery created from scratch with only html (and/or js).
Kindly regards.
Hey!
Markup looks correct but you may need this too, to run alongside your HTML:
<script>
(function($){
$(window).load(function() {
$('.av-masonry').avia_masonry();
});
})(jQuery);
</script>
Cheers!
Josue