Created
May 20, 2020 19:10
-
-
Save djrmom/68ee856f117814127407c37611df15e9 to your computer and use it in GitHub Desktop.
facetwp elementor cards elementor-has-item-raio class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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