FacetWP – layout builder – make entire grid items clickable

<?php

/**
 * Within your layout builder template, add a new "Post Title" item and:
 * 
 * 1. Change its Name setting to "post-title"
 * 2. Change its Link setting to "Post URL"
 * 3. Add the following to your (child) theme's functions.php
 */

add_action( 'wp_footer', function() {
?>
<script>
(function($) {
    $(document).on('click', '.fwpl-result', function() {
        var url = $(this).find('.fwpl-item.post-title a').attr('href');
        window.location.href = url;
    });
})(jQuery);
</script>
<?php
});