facetwp elementor cards elementor-has-item-raio class

<?php
/** re-adds elementor-has-item-radio afer refresh **/
add_action( 'wp_head', function() { ?>
  <script>
    (function($) {
        $(document).on('facetwp-loaded', function() {
            $('.facetwp-template .elementor-posts-container').addClass('elementor-has-item-ratio');
      });
    })(jQuery);
  </script>
<?php });