Last active
October 15, 2018 12:05
-
-
Save danyj/797e36ddaceac64cffc7481717b6aa25 to your computer and use it in GitHub Desktop.
Creatus WordPress Theme open popup on posts title click
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
<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