Skip to content

Instantly share code, notes, and snippets.

@djrmom
Created May 20, 2020 19:10
Show Gist options
  • Save djrmom/68ee856f117814127407c37611df15e9 to your computer and use it in GitHub Desktop.
Save djrmom/68ee856f117814127407c37611df15e9 to your computer and use it in GitHub Desktop.
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 });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment