facetwp elementor cards elementor-has-item-raio class

djrmom

{{gist file=”custom-hooks.php” lang=”php”}}
<?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 });
{{/gist}}