This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Masonry custom size

#41931
Ernest MarcinkoErnest Marcinko
Keymaster

The stacking I think can be resolved by triggering a window resize event with a delay, something like this:

add_action('wp_footer', 'asp_add_footer_script', 99999);
function asp_add_footer_script() {
	?>
<script>
document.querySelectorAll(".asp_main_container").forEach(function(el){
  el.addEventListener("asp_search_start", function(event) { 
    setTimeout(function(){window.dispatchEvent(new Event("resize"));}, 500);
  });
});
</script>
	<?php
}

The hover state is a bit more problematic, that will have to be custom coded within the template fie that I sent you earlier. Unfortunately I am not available for custom jobs, I have years and years of work stacked, I am sorry. It should not be too difficult though, the plugin automatically adds a “hovered” subclass to each item whenever they are hovered, so a simple custom positioned DIV with the details should do the trick.