Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Creatus WordPress Theme open popup on posts title click
<script type="text/javascript">
(function($) {
$(document).ready(function($) {
$('.thz-grid-item-title').on('click',function(e){
e.preventDefault();
$(this).parents('.thz-grid-item-in').find('.thz-hover-icon').trigger('click');
});
});
})(jQuery);
</script>
// or
<script type="text/javascript">
(function($) {
$(document).on("click",".thz-grid-item-title",function(e) {
e.preventDefault();
$(this).parents('.thz-grid-item-in').find('.thz-hover-icon').trigger('click');
});
})(jQuery);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment