Created
February 12, 2015 02:10
-
-
Save kier0/6ae770a9d7f89f1fe4e5 to your computer and use it in GitHub Desktop.
Remove link from post thumbnail (or any image)
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 wp_enqueue_script('jquery'); ?> | |
<script> | |
jQuery(function() { | |
jQuery("a.post-thumbnail ").removeAttr("href"); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment